summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dist/default/production/memoryfile.xml17
-rw-r--r--src/dist/default/production/src.production.cmf398
-rw-r--r--src/dist/default/production/src.production.elfbin12232 -> 0 bytes
-rw-r--r--src/dist/default/production/src.production.hex32
-rw-r--r--src/dist/default/production/src.production.hxl36
-rw-r--r--src/dist/default/production/src.production.lst953
-rw-r--r--src/dist/default/production/src.production.map634
-rw-r--r--src/dist/default/production/src.production.mum9
-rw-r--r--src/dist/default/production/src.production.objbin7095 -> 0 bytes
-rw-r--r--src/dist/default/production/src.production.rlfbin59843 -> 0 bytes
-rw-r--r--src/dist/default/production/src.production.sdb253
-rw-r--r--src/dist/default/production/src.production.sym311
-rw-r--r--src/main.c50
-rw-r--r--src/midi.h1
-rw-r--r--src/nbproject/Makefile-genesis.properties9
-rw-r--r--src/nbproject/Makefile-variables.mk13
-rw-r--r--src/nbproject/private/configurations.xml2
-rw-r--r--src/nbproject/private/private.xml1
-rw-r--r--src/rs232.c38
-rw-r--r--src/rs232.h11
20 files changed, 89 insertions, 2679 deletions
diff --git a/src/dist/default/production/memoryfile.xml b/src/dist/default/production/memoryfile.xml
deleted file mode 100644
index 856a1e7..0000000
--- a/src/dist/default/production/memoryfile.xml
+++ /dev/null
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project>
- <executable name="dist/default/production\src.production.hex">
- <memory name="program">
- <units>bytes</units>
- <length>32768</length>
- <used>416</used>
- <free>32352</free>
- </memory>
- <memory name="data">
- <units>bytes</units>
- <length>1536</length>
- <used>20</used>
- <free>1516</free>
- </memory>
- </executable>
-</project>
diff --git a/src/dist/default/production/src.production.cmf b/src/dist/default/production/src.production.cmf
deleted file mode 100644
index ab9fe32..0000000
--- a/src/dist/default/production/src.production.cmf
+++ /dev/null
@@ -1,398 +0,0 @@
-%CMF
-# %PSECTS Section
-# For each object file, details of its psects are enumerated here.
-# The begining of the section is indicated by %PSECTS. The first
-# line indicates the name of the first object file, e.g.
-# $foo.obj
-# Each line that follows describes a psect in that object file, until
-# the next object file. The lines that describe a psect have the
-# format:
-# <psect name> <class name> <space> <link address> <load addresses> <length> <delta>
-# All addresses and the length are given in unqualified hexadecimal
-# in delta units. Any other numeric values are decimal.
-%PSECTS
-$dist/default/production\src.production.obj
-cinit CODE 0 7E60 7E60 6 1
-text0 CODE 0 7ED4 7ED4 2E 1
-text1 CODE 0 7F02 7F02 76 1
-text2 CODE 0 7E8A 7E8A 24 1
-text3 CODE 0 7EAE 7EAE 26 1
-text4 CODE 0 7F78 7F78 88 1
-text5 CODE 0 7E66 7E66 C 1
-text6 CODE 0 7E72 7E72 18 1
-cstackCOMRAM COMRAM 1 1 1 14 1
-$C:\Users\_prossn\AppData\Local\Temp\s4jk.obj
-idloc IDLOC 0 200000 200000 8 1
-init CODE 0 0 0 4 1
-config CONFIG 0 300000 300000 E 1
-# %UNUSED Section
-# This section enumerates the unused ranges of each CLASS. Each entry
-# is described on a single line as follows:
-# <class name> <range> <delta>
-# Addresses given in the range are in hexadecimal and units of delta.
-%UNUSED
-RAM 60-5FF 1
-SFR F38-FFF 1
-BANK0 60-FF 1
-BANK1 100-1FF 1
-BANK2 200-2FF 1
-BANK3 300-3FF 1
-BANK4 400-4FF 1
-BANK5 500-5FF 1
-CONST 4-7E5F 1
-STACK 60-5FF 1
-SMALLCONST 600-7E5F 1
-CODE 4-7E5F 1
-BIGRAM 15-5FF 1
-COMRAM 15-5F 1
-EEDATA F00000-F000FF 1
-MEDIUMCONST 600-7E5F 1
-# %LINETAB Section
-# This section enumerates the file/line to address mappings.
-# The beginning of the section is indicated by %LINETAB.
-# The first line indicates the name of the first object file, e.g.
-# $foo.obj
-# Each line that follows describes a single mapping until the next
-# object file. Mappings have the following format:
-# <address> <psect name> <class name> ><line number>:<file name>
-# The address is absolute and given given in unqualified hex
-# in delta units of the psect. All mappings within an object file
-# are in ascending order of addresses.
-# All other numeric values are in decimal.
-%LINETAB
-$dist/default/production\src.production.obj
-7E72 text6 CODE >4:Z:\SAMB_4\projects\xilofono\src\rs232.c
-7E72 text6 CODE >7:Z:\SAMB_4\projects\xilofono\src\rs232.c
-7E74 text6 CODE >8:Z:\SAMB_4\projects\xilofono\src\rs232.c
-7E76 text6 CODE >11:Z:\SAMB_4\projects\xilofono\src\rs232.c
-7E78 text6 CODE >12:Z:\SAMB_4\projects\xilofono\src\rs232.c
-7E7C text6 CODE >13:Z:\SAMB_4\projects\xilofono\src\rs232.c
-7E7E text6 CODE >14:Z:\SAMB_4\projects\xilofono\src\rs232.c
-7E80 text6 CODE >17:Z:\SAMB_4\projects\xilofono\src\rs232.c
-7E82 text6 CODE >18:Z:\SAMB_4\projects\xilofono\src\rs232.c
-7E84 text6 CODE >19:Z:\SAMB_4\projects\xilofono\src\rs232.c
-7E86 text6 CODE >20:Z:\SAMB_4\projects\xilofono\src\rs232.c
-7E88 text6 CODE >21:Z:\SAMB_4\projects\xilofono\src\rs232.c
-7E66 text5 CODE >23:Z:\SAMB_4\projects\xilofono\src\rs232.c
-7E68 text5 CODE >25:Z:\SAMB_4\projects\xilofono\src\rs232.c
-7E6C text5 CODE >26:Z:\SAMB_4\projects\xilofono\src\rs232.c
-7E70 text5 CODE >27:Z:\SAMB_4\projects\xilofono\src\rs232.c
-7F78 text4 CODE >81:Z:\SAMB_4\projects\xilofono\src\main.c
-7F78 text4 CODE >83:Z:\SAMB_4\projects\xilofono\src\main.c
-7F80 text4 CODE >87:Z:\SAMB_4\projects\xilofono\src\main.c
-7F94 text4 CODE >91:Z:\SAMB_4\projects\xilofono\src\main.c
-7FA8 text4 CODE >92:Z:\SAMB_4\projects\xilofono\src\main.c
-7FB4 text4 CODE >94:Z:\SAMB_4\projects\xilofono\src\main.c
-7FDA text4 CODE >96:Z:\SAMB_4\projects\xilofono\src\main.c
-7FDC text4 CODE >97:Z:\SAMB_4\projects\xilofono\src\main.c
-7FEE text4 CODE >96:Z:\SAMB_4\projects\xilofono\src\main.c
-7FEE text4 CODE >98:Z:\SAMB_4\projects\xilofono\src\main.c
-7EAE text3 CODE >53:Z:\SAMB_4\projects\xilofono\src\midi.c
-7EAE text3 CODE >55:Z:\SAMB_4\projects\xilofono\src\midi.c
-7EB6 text3 CODE >59:Z:\SAMB_4\projects\xilofono\src\midi.c
-7E8A text2 CODE >42:Z:\SAMB_4\projects\xilofono\src\midi.c
-7E8A text2 CODE >44:Z:\SAMB_4\projects\xilofono\src\midi.c
-7E92 text2 CODE >48:Z:\SAMB_4\projects\xilofono\src\midi.c
-7F02 text1 CODE >64:Z:\SAMB_4\projects\xilofono\src\midi.c
-7F02 text1 CODE >66:Z:\SAMB_4\projects\xilofono\src\midi.c
-7F0A text1 CODE >70:Z:\SAMB_4\projects\xilofono\src\midi.c
-7F1E text1 CODE >74:Z:\SAMB_4\projects\xilofono\src\midi.c
-7F2E text1 CODE >75:Z:\SAMB_4\projects\xilofono\src\midi.c
-7F42 text1 CODE >77:Z:\SAMB_4\projects\xilofono\src\midi.c
-7F52 text1 CODE >78:Z:\SAMB_4\projects\xilofono\src\midi.c
-7F62 text1 CODE >81:Z:\SAMB_4\projects\xilofono\src\midi.c
-7ED4 text0 CODE >105:Z:\SAMB_4\projects\xilofono\src\main.c
-7ED4 text0 CODE >108:Z:\SAMB_4\projects\xilofono\src\main.c
-7EF0 text0 CODE >110:Z:\SAMB_4\projects\xilofono\src\main.c
-7EF4 text0 CODE >113:Z:\SAMB_4\projects\xilofono\src\main.c
-7EF4 text0 CODE >114:Z:\SAMB_4\projects\xilofono\src\main.c
-7F00 text0 CODE >113:Z:\SAMB_4\projects\xilofono\src\main.c
-7E60 cinit CODE >1149:C:\Users\_prossn\AppData\Local\Temp\s4jk.
-7E60 cinit CODE >1151:C:\Users\_prossn\AppData\Local\Temp\s4jk.
-7E60 cinit CODE >1154:C:\Users\_prossn\AppData\Local\Temp\s4jk.
-7E60 cinit CODE >1160:C:\Users\_prossn\AppData\Local\Temp\s4jk.
-7E60 cinit CODE >1162:C:\Users\_prossn\AppData\Local\Temp\s4jk.
-7E62 cinit CODE >1163:C:\Users\_prossn\AppData\Local\Temp\s4jk.
-# %SYMTAB Section
-# An enumeration of all symbols in the program.
-# The beginning of the section is indicated by %SYMTAB.
-# Each line describes a single symbol as follows:
-# <label> <value> [-]<load-adj> <class> <space> <psect> <file-name>
-# The value and load-adj are both in unqualified hexadecimal.
-# All other numeric values are in decimal. The load-adj is the
-# quantity one needs to add to the symbol value in order to obtain the load
-# address of the symbol. This value may be signed. If the symbol
-# was defined in a psect then <psect> will be "-". File-name
-# is the name of the object file in which the symbol was defined.
-%SYMTAB
-__Lmediumconst 0 0 MEDIUMCONST 0 mediumconst dist/default/production\src.production.obj
-__Hspace_0 30000E 0 ABS 0 - dist/default/production\src.production.obj
-__Hspace_1 15 0 ABS 0 - dist/default/production\src.production.obj
-__Hspace_2 0 0 ABS 0 - dist/default/production\src.production.obj
-__CFG_IESO$OFF 0 0 ABS 0 - dist/default/production\src.production.obj
-__end_of_midi_set_status 7EAE 0 CODE 0 text2 dist/default/production\src.production.obj
-__Hibigdata 0 0 CODE 0 ibigdata dist/default/production\src.production.obj
-__mediumconst 0 0 MEDIUMCONST 0 mediumconst C:\Users\_prossn\AppData\Local\Temp\s4jk.obj
-__Heeprom_data 0 0 EEDATA 0 eeprom_data dist/default/production\src.production.obj
-__Lsmallconst 0 0 SMALLCONST 0 smallconst dist/default/production\src.production.obj
-_RCIF 7CF5 0 ABS 0 - dist/default/production\src.production.obj
-_TXIF 7CF4 0 ABS 0 - dist/default/production\src.production.obj
-___sp 0 0 STACK 2 stack C:\Users\_prossn\AppData\Local\Temp\s4jk.obj
-_main 7ED4 0 CODE 0 text0 dist/default/production\src.production.obj
-start 0 0 CODE 0 init C:\Users\_prossn\AppData\Local\Temp\s4jk.obj
-__size_of_main 0 0 ABS 0 - dist/default/production\src.production.obj
-eusart_write_midi@data 8 0 COMRAM 1 cstackCOMRAM dist/default/production\src.production.obj
-__CFG_CCP2MX$PORTC1 0 0 ABS 0 - dist/default/production\src.production.obj
-midi_note_on@channel 8 0 COMRAM 1 cstackCOMRAM dist/default/production\src.production.obj
-__Hpowerup 0 0 CODE 0 powerup dist/default/production\src.production.obj
-__CFG_CCP3MX$PORTB5 0 0 ABS 0 - dist/default/production\src.production.obj
-__size_of_eusart_write_midi 0 0 ABS 0 - dist/default/production\src.production.obj
-__accesstop 60 0 ABS 0 - C:\Users\_prossn\AppData\Local\Temp\s4jk.obj
-intlevel0 0 0 CODE 0 text C:\Users\_prossn\AppData\Local\Temp\s4jk.obj
-intlevel1 0 0 CODE 0 text C:\Users\_prossn\AppData\Local\Temp\s4jk.obj
-intlevel2 0 0 CODE 0 text C:\Users\_prossn\AppData\Local\Temp\s4jk.obj
-intlevel3 0 0 CODE 0 text C:\Users\_prossn\AppData\Local\Temp\s4jk.obj
-_midi_set_status 7E8A 0 CODE 0 text2 dist/default/production\src.production.obj
-__LnvFARRAM 0 0 FARRAM 0 nvFARRAM dist/default/production\src.production.obj
-__CFG_EBTR0$OFF 0 0 ABS 0 - dist/default/production\src.production.obj
-__CFG_EBTR1$OFF 0 0 ABS 0 - dist/default/production\src.production.obj
-__CFG_EBTRB$OFF 0 0 ABS 0 - dist/default/production\src.production.obj
-eusart_write_midi@pkt 2 0 COMRAM 1 cstackCOMRAM dist/default/production\src.production.obj
-__CFG_P2BMX$PORTD2 0 0 ABS 0 - dist/default/production\src.production.obj
-__Hifardata 0 0 CODE 0 ifardata dist/default/production\src.production.obj
-__Hclrtext 0 0 ABS 0 clrtext dist/default/production\src.production.obj
-__CFG_PRICLKEN$ON 0 0 ABS 0 - dist/default/production\src.production.obj
-_eusart_init 7E72 0 CODE 0 text6 dist/default/production\src.production.obj
-midi_note_on@velocity B 0 COMRAM 1 cstackCOMRAM dist/default/production\src.production.obj
-___inthi_sp 0 0 STACK 2 stack C:\Users\_prossn\AppData\Local\Temp\s4jk.obj
-___intlo_sp 0 0 STACK 2 stack C:\Users\_prossn\AppData\Local\Temp\s4jk.obj
-eusart_write_midi@length 6 0 COMRAM 1 cstackCOMRAM dist/default/production\src.production.obj
-__Hintcode_body 0 0 ABS 0 intcode_body dist/default/production\src.production.obj
-__Lintsave_regs 0 0 BIGRAM 1 intsave_regs dist/default/production\src.production.obj
-_BAUDCONbits FB8 0 ABS 0 - dist/default/production\src.production.obj
-__Hmediumconst 0 0 MEDIUMCONST 0 mediumconst dist/default/production\src.production.obj
-__Hintcodelo 0 0 CODE 0 intcodelo dist/default/production\src.production.obj
-midi_note_on@note A 0 COMRAM 1 cstackCOMRAM dist/default/production\src.production.obj
-__size_of_putch 0 0 ABS 0 - dist/default/production\src.production.obj
-__Lintcodelo 0 0 CODE 0 intcodelo dist/default/production\src.production.obj
-__CFG_FCMEN$OFF 0 0 ABS 0 - dist/default/production\src.production.obj
-start_initialization 7E60 0 CODE 0 cinit dist/default/production\src.production.obj
-__CFG_PBADEN$ON 0 0 ABS 0 - dist/default/production\src.production.obj
-__HnvFARRAM 0 0 FARRAM 0 nvFARRAM dist/default/production\src.production.obj
-__size_of_midi_set_status 0 0 ABS 0 - dist/default/production\src.production.obj
-___rparam_used 1 0 ABS 0 - dist/default/production\src.production.obj
-__end_of_eusart_write_midi 8000 0 CODE 0 text4 dist/default/production\src.production.obj
-__CFG_WDTPS$32768 0 0 ABS 0 - dist/default/production\src.production.obj
-_TRISC6 7CA6 0 ABS 0 - dist/default/production\src.production.obj
-_TRISC7 7CA7 0 ABS 0 - dist/default/production\src.production.obj
-__Hbank0 0 0 ABS 0 bank0 dist/default/production\src.production.obj
-__Hbank1 0 0 ABS 0 bank1 dist/default/production\src.production.obj
-__Hbank2 0 0 ABS 0 bank2 dist/default/production\src.production.obj
-__Hbank3 0 0 ABS 0 bank3 dist/default/production\src.production.obj
-__Hbank4 0 0 ABS 0 bank4 dist/default/production\src.production.obj
-__Hbank5 0 0 ABS 0 bank5 dist/default/production\src.production.obj
-__Hcinit 0 0 ABS 0 cinit dist/default/production\src.production.obj
-__Hconst 0 0 CONST 0 const dist/default/production\src.production.obj
-__Hidata 0 0 CODE 0 idata dist/default/production\src.production.obj
-__Hidloc 200008 0 IDLOC 0 idloc dist/default/production\src.production.obj
-__Hnvbit 0 0 COMRAM 1 nvbit dist/default/production\src.production.obj
-__Hparam 0 0 COMRAM 1 rparam dist/default/production\src.production.obj
-__Hrdata 0 0 COMRAM 1 rdata dist/default/production\src.production.obj
-__Hstack 0 0 STACK 2 stack dist/default/production\src.production.obj
-__Htext0 0 0 ABS 0 text0 dist/default/production\src.production.obj
-__Htext1 0 0 ABS 0 text1 dist/default/production\src.production.obj
-__Htext2 0 0 ABS 0 text2 dist/default/production\src.production.obj
-__Htext3 0 0 ABS 0 text3 dist/default/production\src.production.obj
-__Htext4 0 0 ABS 0 text4 dist/default/production\src.production.obj
-__Htext5 0 0 ABS 0 text5 dist/default/production\src.production.obj
-__Htext6 0 0 ABS 0 text6 dist/default/production\src.production.obj
-__Hbigbss 0 0 BIGRAM 1 bigbss dist/default/production\src.production.obj
-__Hbigram 0 0 ABS 0 bigram dist/default/production\src.production.obj
-__smallconst 0 0 SMALLCONST 0 smallconst C:\Users\_prossn\AppData\Local\Temp\s4jk.obj
-__Hcomram 0 0 ABS 0 comram dist/default/production\src.production.obj
-__Hconfig 30000E 0 CONFIG 0 config dist/default/production\src.production.obj
-midi_note_on@pkt 6 0 COMRAM 1 cstackCOMRAM dist/default/production\src.production.obj
-__Lbank0 0 0 ABS 0 bank0 dist/default/production\src.production.obj
-__Lbank1 0 0 ABS 0 bank1 dist/default/production\src.production.obj
-__Lbank2 0 0 ABS 0 bank2 dist/default/production\src.production.obj
-__Lbank3 0 0 ABS 0 bank3 dist/default/production\src.production.obj
-__Lbank4 0 0 ABS 0 bank4 dist/default/production\src.production.obj
-__Lbank5 0 0 ABS 0 bank5 dist/default/production\src.production.obj
-__Lcinit 0 0 ABS 0 cinit dist/default/production\src.production.obj
-__Lconst 0 0 CONST 0 const dist/default/production\src.production.obj
-__Lidata 0 0 CODE 0 idata dist/default/production\src.production.obj
-__Lidloc 200000 0 IDLOC 0 idloc dist/default/production\src.production.obj
-__Lnvbit 0 0 COMRAM 1 nvbit dist/default/production\src.production.obj
-__Lparam 0 0 COMRAM 1 rparam dist/default/production\src.production.obj
-__Lrdata 0 0 COMRAM 1 rdata dist/default/production\src.production.obj
-__Lstack 0 0 STACK 2 stack dist/default/production\src.production.obj
-__Ltext0 0 0 ABS 0 text0 dist/default/production\src.production.obj
-__Ltext1 0 0 ABS 0 text1 dist/default/production\src.production.obj
-__Ltext2 0 0 ABS 0 text2 dist/default/production\src.production.obj
-__Ltext3 0 0 ABS 0 text3 dist/default/production\src.production.obj
-__Ltext4 0 0 ABS 0 text4 dist/default/production\src.production.obj
-__Ltext5 0 0 ABS 0 text5 dist/default/production\src.production.obj
-__Ltext6 0 0 ABS 0 text6 dist/default/production\src.production.obj
-__Hfarbss 0 0 FARRAM 0 farbss dist/default/production\src.production.obj
-__Lintcode_body 0 0 ABS 0 intcode_body dist/default/production\src.production.obj
-__CFG_T3CMX$PORTC0 0 0 ABS 0 - dist/default/production\src.production.obj
-__Habs1 0 0 ABS 0 abs1 dist/default/production\src.production.obj
-__Hdata 0 0 ABS 0 data dist/default/production\src.production.obj
-__Hinit 4 0 CODE 0 init dist/default/production\src.production.obj
-__Hrbit 0 0 COMRAM 1 rbit dist/default/production\src.production.obj
-__Hrbss 0 0 COMRAM 1 rbss dist/default/production\src.production.obj
-__Htemp 0 0 COMRAM 1 temp dist/default/production\src.production.obj
-__Htext 0 0 ABS 0 text dist/default/production\src.production.obj
-__Labs1 0 0 ABS 0 abs1 dist/default/production\src.production.obj
-__Ldata 0 0 ABS 0 data dist/default/production\src.production.obj
-__Linit 0 0 CODE 0 init dist/default/production\src.production.obj
-__Lrbit 0 0 COMRAM 1 rbit dist/default/production\src.production.obj
-__Lrbss 0 0 COMRAM 1 rbss dist/default/production\src.production.obj
-__Ltemp 0 0 COMRAM 1 temp dist/default/production\src.production.obj
-__Ltext 0 0 ABS 0 text dist/default/production\src.production.obj
-__CFG_XINST$OFF 0 0 ABS 0 - dist/default/production\src.production.obj
-__HcstackCOMRAM 0 0 ABS 0 cstackCOMRAM dist/default/production\src.production.obj
-__Hintret 0 0 ABS 0 intret dist/default/production\src.production.obj
-__Hirdata 0 0 CODE 0 irdata dist/default/production\src.production.obj
-__S0 30000E 0 ABS 0 - dist/default/production\src.production.obj
-__S1 15 0 ABS 0 - dist/default/production\src.production.obj
-__S2 0 0 ABS 0 - dist/default/production\src.production.obj
-__Lbigdata 0 0 BIGRAM 1 bigdata dist/default/production\src.production.obj
-__Hnvrram 0 0 COMRAM 1 nvrram dist/default/production\src.production.obj
-_eusart_write_midi 7F78 0 CODE 0 text4 dist/default/production\src.production.obj
-__CFG_BORV$190 0 0 ABS 0 - dist/default/production\src.production.obj
-__Lintentry 0 0 ABS 0 intentry dist/default/production\src.production.obj
-__Hramtop 600 0 RAM 0 ramtop dist/default/production\src.production.obj
-__Hrparam 0 0 COMRAM 1 rparam dist/default/production\src.production.obj
-_midi_note_on 7F02 0 CODE 0 text1 dist/default/production\src.production.obj
-__CFG_PWRTEN$OFF 0 0 ABS 0 - dist/default/production\src.production.obj
-__activetblptr 0 0 ABS 0 - dist/default/production\src.production.obj
-__Hstruct 0 0 COMRAM 1 struct dist/default/production\src.production.obj
-__end_of_eusart_init 7E8A 0 CODE 0 text6 dist/default/production\src.production.obj
-_RCSTAbits FAB 0 ABS 0 - dist/default/production\src.production.obj
-__CFG_HFOFST$ON 0 0 ABS 0 - dist/default/production\src.production.obj
-__Lbigbss 0 0 BIGRAM 1 bigbss dist/default/production\src.production.obj
-__Lbigram 0 0 ABS 0 bigram dist/default/production\src.production.obj
-midi_set_channel@pkt 1 0 COMRAM 1 cstackCOMRAM dist/default/production\src.production.obj
-__Lcomram 0 0 ABS 0 comram dist/default/production\src.production.obj
-__Lconfig 300000 0 CONFIG 0 config dist/default/production\src.production.obj
-__CFG_WDTEN$ON 0 0 ABS 0 - dist/default/production\src.production.obj
-__Lfarbss 0 0 FARRAM 0 farbss dist/default/production\src.production.obj
-__Lfardata 0 0 FARRAM 0 fardata dist/default/production\src.production.obj
-midi_set_status@status 3 0 COMRAM 1 cstackCOMRAM dist/default/production\src.production.obj
-__size_of_midi_note_on 0 0 ABS 0 - dist/default/production\src.production.obj
-stackhi 5FF 0 ABS 0 - C:\Users\_prossn\AppData\Local\Temp\s4jk.obj
-stacklo 60 0 ABS 0 - C:\Users\_prossn\AppData\Local\Temp\s4jk.obj
-__Lintcode 0 0 CODE 0 intcode dist/default/production\src.production.obj
-__Lintret 0 0 ABS 0 intret dist/default/production\src.production.obj
-__Lirdata 0 0 CODE 0 irdata dist/default/production\src.production.obj
-_midi_set_channel 7EAE 0 CODE 0 text3 dist/default/production\src.production.obj
-__Lspace_0 0 0 ABS 0 - dist/default/production\src.production.obj
-__Lspace_1 0 0 ABS 0 - dist/default/production\src.production.obj
-__Lspace_2 0 0 ABS 0 - dist/default/production\src.production.obj
-__CFG_LVP$ON 0 0 ABS 0 - dist/default/production\src.production.obj
-__LcstackCOMRAM 0 0 ABS 0 cstackCOMRAM dist/default/production\src.production.obj
-end_of_initialization 7E60 0 CODE 0 cinit dist/default/production\src.production.obj
-__end_of_midi_note_on 7F78 0 CODE 0 text1 dist/default/production\src.production.obj
-__Lnvrram 0 0 COMRAM 1 nvrram dist/default/production\src.production.obj
-__Hintentry 0 0 ABS 0 intentry dist/default/production\src.production.obj
-__CFG_STVREN$ON 0 0 ABS 0 - dist/default/production\src.production.obj
-__Hreset_vec 0 0 CODE 0 reset_vec dist/default/production\src.production.obj
-__Lramtop 600 0 RAM 0 ramtop dist/default/production\src.production.obj
-__Lrparam 0 0 COMRAM 1 rparam dist/default/production\src.production.obj
-__pcinit 7E60 0 CODE 0 cinit dist/default/production\src.production.obj
-__ptext0 7ED4 0 CODE 0 text0 dist/default/production\src.production.obj
-__ptext1 7F02 0 CODE 0 text1 dist/default/production\src.production.obj
-__ptext2 7E8A 0 CODE 0 text2 dist/default/production\src.production.obj
-__ptext3 7EAE 0 CODE 0 text3 dist/default/production\src.production.obj
-__ptext4 7F78 0 CODE 0 text4 dist/default/production\src.production.obj
-__ptext5 7E66 0 CODE 0 text5 dist/default/production\src.production.obj
-__ptext6 7E72 0 CODE 0 text6 dist/default/production\src.production.obj
-__Lstruct 0 0 COMRAM 1 struct dist/default/production\src.production.obj
-__ramtop 600 0 RAM 0 ramtop C:\Users\_prossn\AppData\Local\Temp\s4jk.obj
-putch@c 1 0 COMRAM 1 cstackCOMRAM dist/default/production\src.production.obj
-__Lpowerup 0 0 CODE 0 powerup dist/default/production\src.production.obj
-__Leeprom_data 0 0 EEDATA 0 eeprom_data dist/default/production\src.production.obj
-midi_set_status@pkt 1 0 COMRAM 1 cstackCOMRAM dist/default/production\src.production.obj
-__Lreset_vec 0 0 CODE 0 reset_vec dist/default/production\src.production.obj
-___param_bank 0 0 ABS 0 - dist/default/production\src.production.obj
-__Hbigdata 0 0 BIGRAM 1 bigdata dist/default/production\src.production.obj
-__end_of__initialization 7E60 0 CODE 0 cinit dist/default/production\src.production.obj
-__CFG_WRT0$OFF 0 0 ABS 0 - dist/default/production\src.production.obj
-__CFG_WRT1$OFF 0 0 ABS 0 - dist/default/production\src.production.obj
-__CFG_WRTB$OFF 0 0 ABS 0 - dist/default/production\src.production.obj
-__Libigdata 0 0 CODE 0 ibigdata dist/default/production\src.production.obj
-__CFG_WRTC$OFF 0 0 ABS 0 - dist/default/production\src.production.obj
-__CFG_WRTD$OFF 0 0 ABS 0 - dist/default/production\src.production.obj
-__size_of_eusart_init 0 0 ABS 0 - dist/default/production\src.production.obj
-__Lclrtext 0 0 ABS 0 clrtext dist/default/production\src.production.obj
-__end_of_midi_set_channel 7ED4 0 CODE 0 text3 dist/default/production\src.production.obj
-__pcstackCOMRAM 1 0 COMRAM 1 cstackCOMRAM dist/default/production\src.production.obj
-__CFG_FOSC$ECHPIO6 0 0 ABS 0 - dist/default/production\src.production.obj
-_TXSTAbits FAC 0 ABS 0 - dist/default/production\src.production.obj
-__size_of_midi_set_channel 0 0 ABS 0 - dist/default/production\src.production.obj
-__CFG_BOREN$SBORDIS 0 0 ABS 0 - dist/default/production\src.production.obj
-__end_of_main 7F02 0 CODE 0 text0 dist/default/production\src.production.obj
-_RCREG FAE 0 ABS 0 - dist/default/production\src.production.obj
-_SPBRG FAF 0 ABS 0 - dist/default/production\src.production.obj
-_TXREG FAD 0 ABS 0 - dist/default/production\src.production.obj
-__end_of_putch 7E72 0 CODE 0 text5 dist/default/production\src.production.obj
-__CFG_CP0$OFF 0 0 ABS 0 - dist/default/production\src.production.obj
-__CFG_CP1$OFF 0 0 ABS 0 - dist/default/production\src.production.obj
-__HRAM 0 0 ABS 0 - dist/default/production\src.production.obj
-__Hbss 0 0 RAM 1 bss dist/default/production\src.production.obj
-__Hram 0 0 ABS 0 ram dist/default/production\src.production.obj
-__Hsfr 0 0 ABS 0 sfr dist/default/production\src.production.obj
-__LRAM 1 0 ABS 0 - dist/default/production\src.production.obj
-__Lbss 0 0 RAM 1 bss dist/default/production\src.production.obj
-__Lram 0 0 ABS 0 ram dist/default/production\src.production.obj
-__Lsfr 0 0 ABS 0 sfr dist/default/production\src.production.obj
-__CFG_PLLCFG$OFF 0 0 ABS 0 - dist/default/production\src.production.obj
-__CFG_CPB$OFF 0 0 ABS 0 - dist/default/production\src.production.obj
-_putch 7E66 0 CODE 0 text5 dist/default/production\src.production.obj
-__CFG_CPD$OFF 0 0 ABS 0 - dist/default/production\src.production.obj
-main@sample_message E 0 COMRAM 1 cstackCOMRAM dist/default/production\src.production.obj
-__initialization 7E60 0 CODE 0 cinit dist/default/production\src.production.obj
-__Hfardata 0 0 FARRAM 0 fardata dist/default/production\src.production.obj
-__Hsmallconst 0 0 SMALLCONST 0 smallconst dist/default/production\src.production.obj
-__Lifardata 0 0 CODE 0 ifardata dist/default/production\src.production.obj
-__Hintsave_regs 0 0 BIGRAM 1 intsave_regs dist/default/production\src.production.obj
-__CFG_MCLRE$EXTMCLR 0 0 ABS 0 - dist/default/production\src.production.obj
-midi_set_channel@channel 3 0 COMRAM 1 cstackCOMRAM dist/default/production\src.production.obj
-__Hintcode 0 0 CODE 0 intcode dist/default/production\src.production.obj
-# %SPLITSTAB Section
-# This section enumerates all the psect splits performed by the assembler.
-# The beginning of the section is indicated by %SPLITSTAB.
-# Each line is a record a particular split, where the parent psect is on
-# the left and the child on the right. Note that a child psect is always
-# split form the top of the parent psect. All splits from a given parent
-# are listed in the order in which they occurred.
-%SPLITSTAB
-# %DABS Section
-# This section contains a table of all usuage of the assember
-# directive DABS in the program. Each line has the following format:
-# <name> <space> <address> <size>
-# If the DABS was originally labelled then that shall be <name>,
-# otherwise name will be "-". The <space> number is in decimal.
-# <address> and <size> are in byte units as unqaulified hexadecimal
-%DABS
-# %SEGMENTS Section
-# This sections enumerates the segments of the program. Each segment
-# is described on a single line as follows:
-# <name> <space> <link address> <file address> <size> <delta>
-# Addresses and size are in unqualified hexadecimal. The link address
-# and size are in units of delta. The file address is in units of bytes.
-# All other numeric quantities are in decimal.
-%SEGMENTS
-cinit 0 7E60 7E60 6 1
-idloc 0 200000 200000 8 1
-text0 0 7ED4 7ED4 2E 1
-text1 0 7F02 7F02 76 1
-text2 0 7E8A 7E8A 24 1
-text3 0 7EAE 7EAE 26 1
-text4 0 7F78 7F78 88 1
-text5 0 7E66 7E66 C 1
-text6 0 7E72 7E72 18 1
-cstackCOMRAM 1 1 1 14 1
-reset_vec 0 0 0 4 1
-config 0 300000 300000 E 1
diff --git a/src/dist/default/production/src.production.elf b/src/dist/default/production/src.production.elf
deleted file mode 100644
index 7e5fec8..0000000
--- a/src/dist/default/production/src.production.elf
+++ /dev/null
Binary files differ
diff --git a/src/dist/default/production/src.production.hex b/src/dist/default/production/src.production.hex
deleted file mode 100644
index 97a4d49..0000000
--- a/src/dist/default/production/src.production.hex
+++ /dev/null
@@ -1,32 +0,0 @@
-:0400000030EF3FF0AE
-:107E600000016AEF3FF0016E9EA8FED701C0ADFF92
-:107E70001200AC98AC9CAB8E810EAF6EAC84B89601
-:107E8000948E948CAB88AC8A120001500210D8B446
-:107E9000120003C004F00F0E041601C0D9FF02C087
-:107EA000DAFFDF500418F00B0418DF6E12000150E7
-:107EB0000210D8B4120003C005F00F0E051601C061
-:107EC000D9FF02C0DAFF053ADF5005180F0B05187D
-:107ED000DF6E12000E0E066E000E076E000E096EAB
-:107EE000000E086E3C0E0A6E7F0E0B6E81EC3FF0AA
-:107EF00039EC3FF00E0E026E000E036EBCEC3FF04C
-:107F0000F9D706500710D8B41200030E06240C6EE1
-:107F1000000E07200D6E0C500D10D8B4120006C0D4
-:107F200001F007C002F0080E036E45EC3FF006C0FA
-:107F300001F007C002F008C003F009C004F057ECDC
-:107F40003FF020EE03F00650D9260750DA220AC08F
-:107F5000DFFF20EE04F00650D9260750DA220BC0CE
-:107F6000DFFF20EE01F00650D9260750DA22020E7C
-:107F7000DE6E000EDD6E120002500310D8B4120047
-:107F8000030E0224046E000E0320056E045005103B
-:107F9000D8B4120020EE01F00250D9260350DA22A4
-:107FA000DECF06F0DDCF07F0030E0224086E000ED0
-:107FB0000320096E02C0D9FF03C0DAFFDF380F0BC0
-:107FC000046E02C0D9FF03C0DAFFDF500F0B056E4D
-:107FD0000538F00B041033EC3FF009D008C0D9FF8E
-:107FE00009C0DAFFDF5033EC3FF0084A092A0606E1
-:107FF000D8A007060628F2E10728D8B41200EED769
-:020000040020DA
-:08000000FFFFFFFFFFFFFFFF00
-:020000040030CA
-:0E000000FF251F3FFFBF85FF0FC00FE00F4021
-:00000001FF
diff --git a/src/dist/default/production/src.production.hxl b/src/dist/default/production/src.production.hxl
deleted file mode 100644
index c3f5c51..0000000
--- a/src/dist/default/production/src.production.hxl
+++ /dev/null
@@ -1,36 +0,0 @@
-### HEXMate logfile and output summary ###
-### Memory Usage ###
- Unused memory ranges:
- 4h - 7E5Fh
- 8000h - 1FFFFFh
- 200008h - 2FFFFFh
- 30000Eh - 30003Fh
-
- dist/default/production\src.production.hex ranges:
- 0h - 3h
- 7E60h - 7FFFh
- 200000h - 200007h
- 300000h - 30000Dh
-
-### Hex Memory Map ###
- Legend:
- - = Unused memory
- F = Filled ROM
- S = Stored serial code
- A = Stored ASCII string
- R = Reserved for checksum
- C = Stored checksum result
- T = Trailing code
- & = Find & replace opcode
- X = Find & delete opcode
- 1 = dist/default/production\src.production.hex
-00000000: 1111------------------------------------------------------------
-00007E40: --------------------------------11111111111111111111111111111111
-00007E80: 1111111111111111111111111111111111111111111111111111111111111111
-00007EC0: 1111111111111111111111111111111111111111111111111111111111111111
-00007F00: 1111111111111111111111111111111111111111111111111111111111111111
-00007F40: 1111111111111111111111111111111111111111111111111111111111111111
-00007F80: 1111111111111111111111111111111111111111111111111111111111111111
-00007FC0: 1111111111111111111111111111111111111111111111111111111111111111
-00200000: 11111111--------------------------------------------------------
-00300000: 11111111111111--------------------------------------------------
diff --git a/src/dist/default/production/src.production.lst b/src/dist/default/production/src.production.lst
deleted file mode 100644
index 5839790..0000000
--- a/src/dist/default/production/src.production.lst
+++ /dev/null
@@ -1,953 +0,0 @@
-
-
-Microchip Technology PIC18 LITE Macro Assembler V1.44 build -154322312
- Thu Feb 22 10:47:56 2018
-
-Microchip Technology Omniscient Code Generator v1.44 (Free mode) build 201709140600
- 1 processor 18F45K22
- 2 fnconf rparam,??,?,0
- 3 opt pw 120
- 4 opt lm
- 5 psect cinit,global,reloc=2,class=CODE,delta=1
- 6 psect cstackCOMRAM,global,class=COMRAM,space=1,delta=1,noexec
- 7 psect text0,global,reloc=2,class=CODE,delta=1
- 8 psect text1,global,reloc=2,class=CODE,delta=1
- 9 psect text2,global,reloc=2,class=CODE,delta=1
- 10 psect text3,global,reloc=2,class=CODE,delta=1
- 11 psect text4,global,reloc=2,class=CODE,delta=1
- 12 psect text5,global,reloc=2,class=CODE,delta=1
- 13 psect text6,global,reloc=2,class=CODE,delta=1
- 14 psect intsave_regs,global,class=BIGRAM,space=1,delta=1,noexec
- 15 psect rparam,global,class=COMRAM,space=1,delta=1,noexec
- 16 0000
- 17 ; Version 1.44
- 18 ; Generated 14/09/2017 GMT
- 19 ;
- 20 ; Copyright © 2017, Microchip Technology Inc. and its subsidiaries ("Microchip")
- 21 ; All rights reserved.
- 22 ;
- 23 ; This software is developed by Microchip Technology Inc. and its subsidiaries ("Microch
- + ip").
- 24 ;
- 25 ; Redistribution and use in source and binary forms, with or without modification, are
- 26 ; permitted provided that the following conditions are met:
- 27 ;
- 28 ; 1. Redistributions of source code must retain the above copyright notice, this lis
- + t of
- 29 ; conditions and the following disclaimer.
- 30 ;
- 31 ; 2. Redistributions in binary form must reproduce the above copyright notice, this
- + list
- 32 ; of conditions and the following disclaimer in the documentation and/or other
- 33 ; materials provided with the distribution.
- 34 ;
- 35 ; 3. Microchip's name may not be used to endorse or promote products derived from th
- + is
- 36 ; software without specific prior written permission.
- 37 ;
- 38 ; THIS SOFTWARE IS PROVIDED BY MICROCHIP "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
- 39 ; INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS F
- + OR
- 40 ; PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL MICROCHIP BE LIABLE FOR ANY DIRECT, INDIREC
- + T,
- 41 ; INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING BUT NOT LIMITED TO
- 42 ; PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA OR PROFITS; OR BUSINESS
- 43 ; INTERRUPTION) HOWSOEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, ST
- + RICT
- 44 ; LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE U
- + SE OF
- 45 ; THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- 46 ;
- 47 ;
- 48 ; Code-generator required, PIC18F45K22 Definitions
- 49 ;
- 50 ; SFR Addresses
- 51 0000 _RCREG set 4014
- 52 0000 _TXREG set 4013
- 53 0000 _BAUDCONbits set 4024
- 54 0000 _SPBRG set 4015
- 55 0000 _RCSTAbits set 4011
- 56 0000 _TXSTAbits set 4012
- 57 0000 _RCIF set 31989
- 58 0000 _TXIF set 31988
- 59 0000 _TRISC6 set 31910
- 60 0000 _TRISC7 set 31911
- 61
- 62 ; #config settings
- 63 0000
- 64 psect cinit
- 65 007E60 __pcinit:
- 66 opt stack 0
- 67 007E60 start_initialization:
- 68 opt stack 0
- 69 007E60 __initialization:
- 70 opt stack 0
- 71 007E60 end_of_initialization:
- 72 opt stack 0
- 73 007E60 __end_of__initialization:
- 74 opt stack 0
- 75 007E60 0100 movlb 0
- 76 007E62 EF6A F03F goto _main ;jump to C main() function
- 77
- 78 psect cstackCOMRAM
- 79 000001 __pcstackCOMRAM:
- 80 opt stack 0
- 81 000001 putch@c:
- 82 opt stack 0
- 83 000001 midi_set_status@pkt:
- 84 opt stack 0
- 85 000001 midi_set_channel@pkt:
- 86 opt stack 0
- 87
- 88 ; 2 bytes @ 0x0
- 89 000001 ds 1
- 90 000002 eusart_write_midi@pkt:
- 91 opt stack 0
- 92
- 93 ; 2 bytes @ 0x1
- 94 000002 ds 1
- 95 000003 midi_set_status@status:
- 96 opt stack 0
- 97 000003 midi_set_channel@channel:
- 98 opt stack 0
- 99
- 100 ; 2 bytes @ 0x2
- 101 000003 ds 1
- 102 000004 ??_eusart_write_midi:
- 103 000004 ??_midi_set_status:
- 104
- 105 ; 1 bytes @ 0x3
- 106 000004 ds 1
- 107 000005 ??_midi_set_channel:
- 108
- 109 ; 1 bytes @ 0x4
- 110 000005 ds 1
- 111 000006 eusart_write_midi@length:
- 112 opt stack 0
- 113 000006 midi_note_on@pkt:
- 114 opt stack 0
- 115
- 116 ; 2 bytes @ 0x5
- 117 000006 ds 2
- 118 000008 eusart_write_midi@data:
- 119 opt stack 0
- 120 000008 midi_note_on@channel:
- 121 opt stack 0
- 122
- 123 ; 2 bytes @ 0x7
- 124 000008 ds 2
- 125 00000A midi_note_on@note:
- 126 opt stack 0
- 127
- 128 ; 1 bytes @ 0x9
- 129 00000A ds 1
- 130 00000B midi_note_on@velocity:
- 131 opt stack 0
- 132
- 133 ; 1 bytes @ 0xA
- 134 00000B ds 1
- 135 00000C ??_midi_note_on:
- 136
- 137 ; 1 bytes @ 0xB
- 138 00000C ds 2
- 139 00000E main@sample_message:
- 140 opt stack 0
- 141
- 142 ; 7 bytes @ 0xD
- 143 00000E ds 7
- 144
- 145 ;;
- 146 ;;Main: autosize = 0, tempsize = 0, incstack = 0, save=0
- 147 ;;
- 148 ;; *************** function _main *****************
- 149 ;; Defined at:
- 150 ;; line 105 in file "main.c"
- 151 ;; Parameters: Size Location Type
- 152 ;; None
- 153 ;; Auto vars: Size Location Type
- 154 ;; sample_messa 7 13[COMRAM] struct .
- 155 ;; Return value: Size Location Type
- 156 ;; 1 wreg void
- 157 ;; Registers used:
- 158 ;; wreg, fsr2l, fsr2h, status,2, status,0, cstack
- 159 ;; Tracked objects:
- 160 ;; On entry : 0/0
- 161 ;; On exit : 0/0
- 162 ;; Unchanged: 0/0
- 163 ;; Data sizes: COMRAM BANK0 BANK1 BANK2 BANK3 BANK4 BANK5
- 164 ;; Params: 0 0 0 0 0 0 0
- 165 ;; Locals: 7 0 0 0 0 0 0
- 166 ;; Temps: 0 0 0 0 0 0 0
- 167 ;; Totals: 7 0 0 0 0 0 0
- 168 ;;Total ram usage: 7 bytes
- 169 ;; Hardware stack levels required when called: 2
- 170 ;; This function calls:
- 171 ;; _eusart_init
- 172 ;; _eusart_write_midi
- 173 ;; _midi_note_on
- 174 ;; This function is called by:
- 175 ;; Startup code after reset
- 176 ;; This function uses a non-reentrant model
- 177 ;;
- 178
- 179 psect text0
- 180 007ED4 __ptext0:
- 181 opt stack 0
- 182 007ED4 _main:
- 183 opt stack 29
- 184
- 185 ;main.c: 107: midi_message_t sample_message;
- 186 ;main.c: 108: midi_note_on(&sample_message, 0x0, 0x3C, 0x7F);
- 187
- 188 ;incstack = 0
- 189 007ED4 0E0E movlw low main@sample_message
- 190 007ED6 6E06 movwf midi_note_on@pkt,c
- 191 007ED8 0E00 movlw high main@sample_message
- 192 007EDA 6E07 movwf midi_note_on@pkt+1,c
- 193 007EDC 0E00 movlw 0
- 194 007EDE 6E09 movwf midi_note_on@channel+1,c
- 195 007EE0 0E00 movlw 0
- 196 007EE2 6E08 movwf midi_note_on@channel,c
- 197 007EE4 0E3C movlw 60
- 198 007EE6 6E0A movwf midi_note_on@note,c
- 199 007EE8 0E7F movlw 127
- 200 007EEA 6E0B movwf midi_note_on@velocity,c
- 201 007EEC EC81 F03F call _midi_note_on ;wreg free
- 202
- 203 ;main.c: 110: eusart_init();
- 204 007EF0 EC39 F03F call _eusart_init ;wreg free
- 205 007EF4
- 206 ;main.c: 114: eusart_write_midi(&sample_message);
- 207 007EF4 0E0E movlw low main@sample_message
- 208 007EF6 6E02 movwf eusart_write_midi@pkt,c
- 209 007EF8 0E00 movlw high main@sample_message
- 210 007EFA 6E03 movwf eusart_write_midi@pkt+1,c
- 211 007EFC ECBC F03F call _eusart_write_midi ;wreg free
- 212 007F00 D7F9 goto l19
- 213 007F02 __end_of_main:
- 214 opt stack 0
- 215
- 216 ;; *************** function _midi_note_on *****************
- 217 ;; Defined at:
- 218 ;; line 64 in file "midi.c"
- 219 ;; Parameters: Size Location Type
- 220 ;; pkt 2 5[COMRAM] PTR struct .
- 221 ;; -> main@sample_message(7),
- 222 ;; channel 2 7[COMRAM] unsigned int
- 223 ;; note 1 9[COMRAM] enum E31
- 224 ;; velocity 1 10[COMRAM] unsigned char
- 225 ;; Auto vars: Size Location Type
- 226 ;; None
- 227 ;; Return value: Size Location Type
- 228 ;; 2 5[COMRAM] int
- 229 ;; Registers used:
- 230 ;; wreg, fsr2l, fsr2h, status,2, status,0, cstack
- 231 ;; Tracked objects:
- 232 ;; On entry : 0/0
- 233 ;; On exit : 0/0
- 234 ;; Unchanged: 0/0
- 235 ;; Data sizes: COMRAM BANK0 BANK1 BANK2 BANK3 BANK4 BANK5
- 236 ;; Params: 6 0 0 0 0 0 0
- 237 ;; Locals: 0 0 0 0 0 0 0
- 238 ;; Temps: 2 0 0 0 0 0 0
- 239 ;; Totals: 8 0 0 0 0 0 0
- 240 ;;Total ram usage: 8 bytes
- 241 ;; Hardware stack levels used: 1
- 242 ;; Hardware stack levels required when called: 1
- 243 ;; This function calls:
- 244 ;; _midi_set_channel
- 245 ;; _midi_set_status
- 246 ;; This function is called by:
- 247 ;; _main
- 248 ;; This function uses a non-reentrant model
- 249 ;;
- 250
- 251 psect text1
- 252 007F02 __ptext1:
- 253 opt stack 0
- 254 007F02 _midi_note_on:
- 255 opt stack 29
- 256
- 257 ;midi.c: 66: if (pkt == (0)) {
- 258
- 259 ;incstack = 0
- 260 007F02 5006 movf midi_note_on@pkt,w,c
- 261 007F04 1007 iorwf midi_note_on@pkt+1,w,c
- 262 007F06 B4D8 btfsc status,2,c
- 263 007F08 0012 return
- 264
- 265 ;midi.c: 68: }
- 266 ;midi.c: 70: if (pkt->data == (0)) {
- 267
- 268 ;midi.c: 67: return -1;
- 269 ; Return value of _midi_note_on is never used
- 270 007F0A 0E03 movlw 3
- 271 007F0C 2406 addwf midi_note_on@pkt,w,c
- 272 007F0E 6E0C movwf ??_midi_note_on& (0+255),c
- 273 007F10 0E00 movlw 0
- 274 007F12 2007 addwfc midi_note_on@pkt+1,w,c
- 275 007F14 6E0D movwf (??_midi_note_on+1)& (0+255),c
- 276 007F16 500C movf ??_midi_note_on,w,c
- 277 007F18 100D iorwf ??_midi_note_on+1,w,c
- 278 007F1A B4D8 btfsc status,2,c
- 279 007F1C 0012 return
- 280
- 281 ;midi.c: 72: }
- 282 ;midi.c: 74: midi_set_status(pkt, NOTE_ON);
- 283
- 284 ;midi.c: 71: return -2;
- 285 ; Return value of _midi_note_on is never used
- 286 007F1E C006 F001 movff midi_note_on@pkt,midi_set_status@pkt
- 287 007F22 C007 F002 movff midi_note_on@pkt+1,midi_set_status@pkt+1
- 288 007F26 0E08 movlw 8
- 289 007F28 6E03 movwf midi_set_status@status,c
- 290 007F2A EC45 F03F call _midi_set_status ;wreg free
- 291
- 292 ;midi.c: 75: midi_set_channel(pkt, channel);
- 293 007F2E C006 F001 movff midi_note_on@pkt,midi_set_channel@pkt
- 294 007F32 C007 F002 movff midi_note_on@pkt+1,midi_set_channel@pkt+1
- 295 007F36 C008 F003 movff midi_note_on@channel,midi_set_channel@channel
- 296 007F3A C009 F004 movff midi_note_on@channel+1,midi_set_channel@channel+1
- 297 007F3E EC57 F03F call _midi_set_channel ;wreg free
- 298
- 299 ;midi.c: 77: pkt->data[0] = note;
- 300 007F42 EE20 F003 lfsr 2,3
- 301 007F46 5006 movf midi_note_on@pkt,w,c
- 302 007F48 26D9 addwf fsr2l,f,c
- 303 007F4A 5007 movf midi_note_on@pkt+1,w,c
- 304 007F4C 22DA addwfc fsr2h,f,c
- 305 007F4E C00A FFDF movff midi_note_on@note,indf2
- 306
- 307 ;midi.c: 78: pkt->data[1] = velocity;
- 308 007F52 EE20 F004 lfsr 2,4
- 309 007F56 5006 movf midi_note_on@pkt,w,c
- 310 007F58 26D9 addwf fsr2l,f,c
- 311 007F5A 5007 movf midi_note_on@pkt+1,w,c
- 312 007F5C 22DA addwfc fsr2h,f,c
- 313 007F5E C00B FFDF movff midi_note_on@velocity,indf2
- 314
- 315 ;midi.c: 81: pkt->data_size = 2;
- 316 007F62 EE20 F001 lfsr 2,1
- 317 007F66 5006 movf midi_note_on@pkt,w,c
- 318 007F68 26D9 addwf fsr2l,f,c
- 319 007F6A 5007 movf midi_note_on@pkt+1,w,c
- 320 007F6C 22DA addwfc fsr2h,f,c
- 321 007F6E 0E02 movlw 2
- 322 007F70 6EDE movwf postinc2,c
- 323 007F72 0E00 movlw 0
- 324 007F74 6EDD movwf postdec2,c
- 325 007F76 0012 return
- 326 007F78 __end_of_midi_note_on:
- 327 opt stack 0
- 328 indf2 equ 0xFDF
- 329 postinc2 equ 0xFDE
- 330 postdec2 equ 0xFDD
- 331 fsr2h equ 0xFDA
- 332 fsr2l equ 0xFD9
- 333 status equ 0xFD8
- 334
- 335 ;; *************** function _midi_set_status *****************
- 336 ;; Defined at:
- 337 ;; line 42 in file "midi.c"
- 338 ;; Parameters: Size Location Type
- 339 ;; pkt 2 0[COMRAM] PTR struct .
- 340 ;; -> main@sample_message(7),
- 341 ;; status 1 2[COMRAM] enum E40
- 342 ;; Auto vars: Size Location Type
- 343 ;; None
- 344 ;; Return value: Size Location Type
- 345 ;; 2 0[COMRAM] int
- 346 ;; Registers used:
- 347 ;; wreg, fsr2l, fsr2h, status,2, status,0
- 348 ;; Tracked objects:
- 349 ;; On entry : 0/0
- 350 ;; On exit : 0/0
- 351 ;; Unchanged: 0/0
- 352 ;; Data sizes: COMRAM BANK0 BANK1 BANK2 BANK3 BANK4 BANK5
- 353 ;; Params: 3 0 0 0 0 0 0
- 354 ;; Locals: 0 0 0 0 0 0 0
- 355 ;; Temps: 1 0 0 0 0 0 0
- 356 ;; Totals: 4 0 0 0 0 0 0
- 357 ;;Total ram usage: 4 bytes
- 358 ;; Hardware stack levels used: 1
- 359 ;; This function calls:
- 360 ;; Nothing
- 361 ;; This function is called by:
- 362 ;; _midi_note_on
- 363 ;; _midi_note_off
- 364 ;; This function uses a non-reentrant model
- 365 ;;
- 366
- 367 psect text2
- 368 007E8A __ptext2:
- 369 opt stack 0
- 370 007E8A _midi_set_status:
- 371 opt stack 29
- 372
- 373 ;midi.c: 44: if (pkt == (0)) {
- 374
- 375 ;incstack = 0
- 376 007E8A 5001 movf midi_set_status@pkt,w,c
- 377 007E8C 1002 iorwf midi_set_status@pkt+1,w,c
- 378 007E8E B4D8 btfsc status,2,c
- 379 007E90 0012 return
- 380
- 381 ;midi.c: 46: }
- 382 ;midi.c: 48: pkt->status = status & 0x0F;
- 383
- 384 ;midi.c: 45: return -1;
- 385 ; Return value of _midi_set_status is never used
- 386 007E92 C003 F004 movff midi_set_status@status,??_midi_set_status
- 387 007E96 0E0F movlw 15
- 388 007E98 1604 andwf ??_midi_set_status,f,c
- 389 007E9A C001 FFD9 movff midi_set_status@pkt,fsr2l
- 390 007E9E C002 FFDA movff midi_set_status@pkt+1,fsr2h
- 391 007EA2 50DF movf indf2,w,c
- 392 007EA4 1804 xorwf ??_midi_set_status,w,c
- 393 007EA6 0BF0 andlw -16
- 394 007EA8 1804 xorwf ??_midi_set_status,w,c
- 395 007EAA 6EDF movwf indf2,c
- 396 007EAC 0012 return
- 397 007EAE __end_of_midi_set_status:
- 398 opt stack 0
- 399 indf2 equ 0xFDF
- 400 postinc2 equ 0xFDE
- 401 postdec2 equ 0xFDD
- 402 fsr2h equ 0xFDA
- 403 fsr2l equ 0xFD9
- 404 status equ 0xFD8
- 405
- 406 ;; *************** function _midi_set_channel *****************
- 407 ;; Defined at:
- 408 ;; line 53 in file "midi.c"
- 409 ;; Parameters: Size Location Type
- 410 ;; pkt 2 0[COMRAM] PTR struct .
- 411 ;; -> main@sample_message(7),
- 412 ;; channel 2 2[COMRAM] unsigned int
- 413 ;; Auto vars: Size Location Type
- 414 ;; None
- 415 ;; Return value: Size Location Type
- 416 ;; 2 0[COMRAM] int
- 417 ;; Registers used:
- 418 ;; wreg, fsr2l, fsr2h, status,2, status,0
- 419 ;; Tracked objects:
- 420 ;; On entry : 0/0
- 421 ;; On exit : 0/0
- 422 ;; Unchanged: 0/0
- 423 ;; Data sizes: COMRAM BANK0 BANK1 BANK2 BANK3 BANK4 BANK5
- 424 ;; Params: 4 0 0 0 0 0 0
- 425 ;; Locals: 0 0 0 0 0 0 0
- 426 ;; Temps: 1 0 0 0 0 0 0
- 427 ;; Totals: 5 0 0 0 0 0 0
- 428 ;;Total ram usage: 5 bytes
- 429 ;; Hardware stack levels used: 1
- 430 ;; This function calls:
- 431 ;; Nothing
- 432 ;; This function is called by:
- 433 ;; _midi_note_on
- 434 ;; _midi_note_off
- 435 ;; This function uses a non-reentrant model
- 436 ;;
- 437
- 438 psect text3
- 439 007EAE __ptext3:
- 440 opt stack 0
- 441 007EAE _midi_set_channel:
- 442 opt stack 29
- 443
- 444 ;midi.c: 55: if (pkt == (0)) {
- 445
- 446 ;incstack = 0
- 447 007EAE 5001 movf midi_set_channel@pkt,w,c
- 448 007EB0 1002 iorwf midi_set_channel@pkt+1,w,c
- 449 007EB2 B4D8 btfsc status,2,c
- 450 007EB4 0012 return
- 451
- 452 ;midi.c: 57: }
- 453 ;midi.c: 59: pkt->channel = channel & 0x0F;
- 454
- 455 ;midi.c: 56: return -1;
- 456 ; Return value of _midi_set_channel is never used
- 457 007EB6 C003 F005 movff midi_set_channel@channel,??_midi_set_channel
- 458 007EBA 0E0F movlw 15
- 459 007EBC 1605 andwf ??_midi_set_channel,f,c
- 460 007EBE C001 FFD9 movff midi_set_channel@pkt,fsr2l
- 461 007EC2 C002 FFDA movff midi_set_channel@pkt+1,fsr2h
- 462 007EC6 3A05 swapf ??_midi_set_channel,f,c
- 463 007EC8 50DF movf indf2,w,c
- 464 007ECA 1805 xorwf ??_midi_set_channel,w,c
- 465 007ECC 0B0F andlw -241
- 466 007ECE 1805 xorwf ??_midi_set_channel,w,c
- 467 007ED0 6EDF movwf indf2,c
- 468 007ED2 0012 return
- 469 007ED4 __end_of_midi_set_channel:
- 470 opt stack 0
- 471 indf2 equ 0xFDF
- 472 postinc2 equ 0xFDE
- 473 postdec2 equ 0xFDD
- 474 fsr2h equ 0xFDA
- 475 fsr2l equ 0xFD9
- 476 status equ 0xFD8
- 477
- 478 ;; *************** function _eusart_write_midi *****************
- 479 ;; Defined at:
- 480 ;; line 81 in file "main.c"
- 481 ;; Parameters: Size Location Type
- 482 ;; pkt 2 1[COMRAM] PTR struct .
- 483 ;; -> main@sample_message(7),
- 484 ;; Auto vars: Size Location Type
- 485 ;; data 2 7[COMRAM] PTR unsigned char
- 486 ;; -> sample_message.data(4), main@sample_message(7),
- 487 ;; length 2 5[COMRAM] unsigned int
- 488 ;; Return value: Size Location Type
- 489 ;; 2 1[COMRAM] int
- 490 ;; Registers used:
- 491 ;; wreg, fsr2l, fsr2h, status,2, status,0, cstack
- 492 ;; Tracked objects:
- 493 ;; On entry : 0/0
- 494 ;; On exit : 0/0
- 495 ;; Unchanged: 0/0
- 496 ;; Data sizes: COMRAM BANK0 BANK1 BANK2 BANK3 BANK4 BANK5
- 497 ;; Params: 2 0 0 0 0 0 0
- 498 ;; Locals: 4 0 0 0 0 0 0
- 499 ;; Temps: 2 0 0 0 0 0 0
- 500 ;; Totals: 8 0 0 0 0 0 0
- 501 ;;Total ram usage: 8 bytes
- 502 ;; Hardware stack levels used: 1
- 503 ;; Hardware stack levels required when called: 1
- 504 ;; This function calls:
- 505 ;; _putch
- 506 ;; This function is called by:
- 507 ;; _main
- 508 ;; This function uses a non-reentrant model
- 509 ;;
- 510
- 511 psect text4
- 512 007F78 __ptext4:
- 513 opt stack 0
- 514 007F78 _eusart_write_midi:
- 515 opt stack 29
- 516
- 517 ;main.c: 83: if (pkt == (0)) {
- 518
- 519 ;incstack = 0
- 520 007F78 5002 movf eusart_write_midi@pkt,w,c
- 521 007F7A 1003 iorwf eusart_write_midi@pkt+1,w,c
- 522 007F7C B4D8 btfsc status,2,c
- 523 007F7E 0012 return
- 524
- 525 ;main.c: 85: }
- 526 ;main.c: 87: if (pkt->data == (0)) {
- 527
- 528 ;main.c: 84: return -1;
- 529 ; Return value of _eusart_write_midi is never used
- 530 007F80 0E03 movlw 3
- 531 007F82 2402 addwf eusart_write_midi@pkt,w,c
- 532 007F84 6E04 movwf ??_eusart_write_midi& (0+255),c
- 533 007F86 0E00 movlw 0
- 534 007F88 2003 addwfc eusart_write_midi@pkt+1,w,c
- 535 007F8A 6E05 movwf (??_eusart_write_midi+1)& (0+255),c
- 536 007F8C 5004 movf ??_eusart_write_midi,w,c
- 537 007F8E 1005 iorwf ??_eusart_write_midi+1,w,c
- 538 007F90 B4D8 btfsc status,2,c
- 539 007F92 0012 return
- 540
- 541 ;main.c: 89: }
- 542 ;main.c: 91: size_t length = pkt->data_size;
- 543
- 544 ;main.c: 88: return -2;
- 545 ; Return value of _eusart_write_midi is never used
- 546 007F94 EE20 F001 lfsr 2,1
- 547 007F98 5002 movf eusart_write_midi@pkt,w,c
- 548 007F9A 26D9 addwf fsr2l,f,c
- 549 007F9C 5003 movf eusart_write_midi@pkt+1,w,c
- 550 007F9E 22DA addwfc fsr2h,f,c
- 551 007FA0 CFDE F006 movff postinc2,eusart_write_midi@length
- 552 007FA4 CFDD F007 movff postdec2,eusart_write_midi@length+1
- 553
- 554 ;main.c: 92: uint8_t *data = pkt->data;
- 555 007FA8 0E03 movlw 3
- 556 007FAA 2402 addwf eusart_write_midi@pkt,w,c
- 557 007FAC 6E08 movwf eusart_write_midi@data,c
- 558 007FAE 0E00 movlw 0
- 559 007FB0 2003 addwfc eusart_write_midi@pkt+1,w,c
- 560 007FB2 6E09 movwf eusart_write_midi@data+1,c
- 561
- 562 ;main.c: 94: putch((char)((pkt->status << 4) | pkt->channel));
- 563 007FB4 C002 FFD9 movff eusart_write_midi@pkt,fsr2l
- 564 007FB8 C003 FFDA movff eusart_write_midi@pkt+1,fsr2h
- 565 007FBC 38DF swapf indf2,w,c
- 566 007FBE 0B0F andlw 15
- 567 007FC0 6E04 movwf ??_eusart_write_midi& (0+255),c
- 568 007FC2 C002 FFD9 movff eusart_write_midi@pkt,fsr2l
- 569 007FC6 C003 FFDA movff eusart_write_midi@pkt+1,fsr2h
- 570 007FCA 50DF movf indf2,w,c
- 571 007FCC 0B0F andlw 15
- 572 007FCE 6E05 movwf (??_eusart_write_midi+1)& (0+255),c
- 573 007FD0 3805 swapf ??_eusart_write_midi+1,w,c
- 574 007FD2 0BF0 andlw 240
- 575 007FD4 1004 iorwf ??_eusart_write_midi,w,c
- 576 007FD6 EC33 F03F call _putch
- 577
- 578 ;main.c: 96: while (length--) {
- 579 007FDA D009 goto l12
- 580 007FDC l832:
- 581
- 582 ;main.c: 97: putch((char) *(data++));
- 583 007FDC C008 FFD9 movff eusart_write_midi@data,fsr2l
- 584 007FE0 C009 FFDA movff eusart_write_midi@data+1,fsr2h
- 585 007FE4 50DF movf indf2,w,c
- 586 007FE6 EC33 F03F call _putch
- 587 007FEA 4A08 infsnz eusart_write_midi@data,f,c
- 588 007FEC 2A09 incf eusart_write_midi@data+1,f,c
- 589 007FEE l12:
- 590 007FEE 0606 decf eusart_write_midi@length,f,c
- 591 007FF0 A0D8 btfss status,0,c
- 592 007FF2 0607 decf eusart_write_midi@length+1,f,c
- 593 007FF4 2806 incf eusart_write_midi@length,w,c
- 594 007FF6 E1F2 bnz l832
- 595 007FF8 2807 incf eusart_write_midi@length+1,w,c
- 596 007FFA B4D8 btfsc status,2,c
- 597 007FFC 0012 return
- 598 007FFE D7EE goto l13
- 599 008000 __end_of_eusart_write_midi:
- 600 opt stack 0
- 601 indf2 equ 0xFDF
- 602 postinc2 equ 0xFDE
- 603 postdec2 equ 0xFDD
- 604 fsr2h equ 0xFDA
- 605 fsr2l equ 0xFD9
- 606 status equ 0xFD8
- 607
- 608 ;; *************** function _putch *****************
- 609 ;; Defined at:
- 610 ;; line 23 in file "rs232.c"
- 611 ;; Parameters: Size Location Type
- 612 ;; c 1 wreg unsigned char
- 613 ;; Auto vars: Size Location Type
- 614 ;; c 1 0[COMRAM] unsigned char
- 615 ;; Return value: Size Location Type
- 616 ;; 1 wreg void
- 617 ;; Registers used:
- 618 ;; wreg
- 619 ;; Tracked objects:
- 620 ;; On entry : 0/0
- 621 ;; On exit : 0/0
- 622 ;; Unchanged: 0/0
- 623 ;; Data sizes: COMRAM BANK0 BANK1 BANK2 BANK3 BANK4 BANK5
- 624 ;; Params: 0 0 0 0 0 0 0
- 625 ;; Locals: 1 0 0 0 0 0 0
- 626 ;; Temps: 0 0 0 0 0 0 0
- 627 ;; Totals: 1 0 0 0 0 0 0
- 628 ;;Total ram usage: 1 bytes
- 629 ;; Hardware stack levels used: 1
- 630 ;; This function calls:
- 631 ;; Nothing
- 632 ;; This function is called by:
- 633 ;; _eusart_write_midi
- 634 ;; _getche
- 635 ;; This function uses a non-reentrant model
- 636 ;;
- 637
- 638 psect text5
- 639 007E66 __ptext5:
- 640 opt stack 0
- 641 007E66 _putch:
- 642 opt stack 29
- 643
- 644 ;incstack = 0
- 645 ;putch@c stored from wreg
- 646 007E66 6E01 movwf putch@c,c
- 647 007E68
- 648 ;rs232.c: 25: while (!TXIF);
- 649 007E68 A89E btfss 3998,4,c ;volatile
- 650 007E6A D7FE goto l700
- 651
- 652 ;rs232.c: 26: TXREG = c;
- 653 007E6C C001 FFAD movff putch@c,4013 ;volatile
- 654 007E70 0012 return ;funcret
- 655 007E72 __end_of_putch:
- 656 opt stack 0
- 657 indf2 equ 0xFDF
- 658 postinc2 equ 0xFDE
- 659 postdec2 equ 0xFDD
- 660 fsr2h equ 0xFDA
- 661 fsr2l equ 0xFD9
- 662 status equ 0xFD8
- 663
- 664 ;; *************** function _eusart_init *****************
- 665 ;; Defined at:
- 666 ;; line 4 in file "rs232.c"
- 667 ;; Parameters: Size Location Type
- 668 ;; None
- 669 ;; Auto vars: Size Location Type
- 670 ;; None
- 671 ;; Return value: Size Location Type
- 672 ;; 1 wreg void
- 673 ;; Registers used:
- 674 ;; wreg, status,2
- 675 ;; Tracked objects:
- 676 ;; On entry : 0/0
- 677 ;; On exit : 0/0
- 678 ;; Unchanged: 0/0
- 679 ;; Data sizes: COMRAM BANK0 BANK1 BANK2 BANK3 BANK4 BANK5
- 680 ;; Params: 0 0 0 0 0 0 0
- 681 ;; Locals: 0 0 0 0 0 0 0
- 682 ;; Temps: 0 0 0 0 0 0 0
- 683 ;; Totals: 0 0 0 0 0 0 0
- 684 ;;Total ram usage: 0 bytes
- 685 ;; Hardware stack levels used: 1
- 686 ;; This function calls:
- 687 ;; Nothing
- 688 ;; This function is called by:
- 689 ;; _main
- 690 ;; This function uses a non-reentrant model
- 691 ;;
- 692
- 693 psect text6
- 694 007E72 __ptext6:
- 695 opt stack 0
- 696 007E72 _eusart_init:
- 697 opt stack 30
- 698
- 699 ;rs232.c: 7: TXSTAbits.SYNC = 0;
- 700
- 701 ;incstack = 0
- 702 007E72 98AC bcf 4012,4,c ;volatile
- 703
- 704 ;rs232.c: 8: TXSTAbits.TX9 = 0;
- 705 007E74 9CAC bcf 4012,6,c ;volatile
- 706
- 707 ;rs232.c: 11: RCSTAbits.SPEN = 1;
- 708 007E76 8EAB bsf 4011,7,c ;volatile
- 709
- 710 ;rs232.c: 12: SPBRG = 129;
- 711 007E78 0E81 movlw 129
- 712 007E7A 6EAF movwf 4015,c ;volatile
- 713
- 714 ;rs232.c: 13: TXSTAbits.BRGH = 1;
- 715 007E7C 84AC bsf 4012,2,c ;volatile
- 716
- 717 ;rs232.c: 14: BAUDCONbits.BRG16 = 0;
- 718 007E7E 96B8 bcf 4024,3,c ;volatile
- 719
- 720 ;rs232.c: 17: TRISC7 = 1;
- 721 007E80 8E94 bsf 3988,7,c ;volatile
- 722
- 723 ;rs232.c: 18: TRISC6 = 1;
- 724 007E82 8C94 bsf 3988,6,c ;volatile
- 725
- 726 ;rs232.c: 19: RCSTAbits.CREN = 1;
- 727 007E84 88AB bsf 4011,4,c ;volatile
- 728
- 729 ;rs232.c: 20: TXSTAbits.TXEN = 1;
- 730 007E86 8AAC bsf 4012,5,c ;volatile
- 731 007E88 0012 return ;funcret
- 732 007E8A __end_of_eusart_init:
- 733 opt stack 0
- 734 0000 indf2 equ 0xFDF
- 735 postinc2 equ 0xFDE
- 736 postdec2 equ 0xFDD
- 737 fsr2h equ 0xFDA
- 738 fsr2l equ 0xFD9
- 739 status equ 0xFD8
- 740 indf2 equ 0xFDF
- 741 postinc2 equ 0xFDE
- 742 postdec2 equ 0xFDD
- 743 fsr2h equ 0xFDA
- 744 fsr2l equ 0xFD9
- 745 status equ 0xFD8
- 746
- 747 psect rparam
- 748 0000 indf2 equ 0xFDF
- 749 postinc2 equ 0xFDE
- 750 postdec2 equ 0xFDD
- 751 fsr2h equ 0xFDA
- 752 fsr2l equ 0xFD9
- 753 status equ 0xFD8
-
-
-Data Sizes:
- Strings 0
- Constant 0
- Data 0
- BSS 0
- Persistent 0
- Stack 0
-
-Auto Spaces:
- Space Size Autos Used
- COMRAM 95 20 20
- BANK0 160 0 0
- BANK1 256 0 0
- BANK2 256 0 0
- BANK3 256 0 0
- BANK4 256 0 0
- BANK5 256 0 0
-
-Pointer List with Targets:
-
- midi_note_on@pkt PTR struct . size(2) Largest target is 7
- -> main@sample_message(COMRAM[7]),
-
- midi_set_channel@pkt PTR struct . size(2) Largest target is 7
- -> main@sample_message(COMRAM[7]),
-
- midi_set_status@pkt PTR struct . size(2) Largest target is 7
- -> main@sample_message(COMRAM[7]),
-
- eusart_write_midi@data PTR unsigned char size(2) Largest target is 7
- -> sample_message.data(COMRAM[4]), main@sample_message(COMRAM[7]),
-
- eusart_write_midi@pkt PTR struct . size(2) Largest target is 7
- -> main@sample_message(COMRAM[7]),
-
-
-Critical Paths under _main in COMRAM
-
- _main->_midi_note_on
- _midi_note_on->_midi_set_channel
- _eusart_write_midi->_putch
-
-Critical Paths under _main in BANK0
-
- None.
-
-Critical Paths under _main in BANK1
-
- None.
-
-Critical Paths under _main in BANK2
-
- None.
-
-Critical Paths under _main in BANK3
-
- None.
-
-Critical Paths under _main in BANK4
-
- None.
-
-Critical Paths under _main in BANK5
-
- None.
-
-Call Graph Tables:
-
- ---------------------------------------------------------------------------------
- (Depth) Function Calls Base Space Used Autos Params Refs
- ---------------------------------------------------------------------------------
- (0) _main 7 7 0 1590
- 13 COMRAM 7 7 0
- _eusart_init
- _eusart_write_midi
- _midi_note_on
- ---------------------------------------------------------------------------------
- (1) _midi_note_on 8 2 6 1264
- 5 COMRAM 8 2 6
- _midi_set_channel
- _midi_set_status
- ---------------------------------------------------------------------------------
- (2) _midi_set_status 4 1 3 370
- 0 COMRAM 4 1 3
- ---------------------------------------------------------------------------------
- (2) _midi_set_channel 5 1 4 370
- 0 COMRAM 5 1 4
- ---------------------------------------------------------------------------------
- (1) _eusart_write_midi 8 6 2 270
- 1 COMRAM 8 6 2
- _putch
- ---------------------------------------------------------------------------------
- (2) _putch 1 1 0 15
- 0 COMRAM 1 1 0
- ---------------------------------------------------------------------------------
- (1) _eusart_init 0 0 0 0
- ---------------------------------------------------------------------------------
- Estimated maximum stack depth 2
- ---------------------------------------------------------------------------------
-
- Call Graph Graphs:
-
- _main (ROOT)
- _eusart_init
- _eusart_write_midi
- _putch
- _midi_note_on
- _midi_set_channel
- _midi_set_status
-
- Address spaces:
-Name Size Autos Total Cost Usage
-BITCOMRAM 5F 0 0 0 0.0%
-EEDATA 100 0 0 0 0.0%
-NULL 0 0 0 0 0.0%
-CODE 0 0 0 0 0.0%
-COMRAM 5F 14 14 1 21.1%
-STACK 0 0 0 2 0.0%
-BITBANK0 A0 0 0 3 0.0%
-BANK0 A0 0 0 4 0.0%
-BITBANK1 100 0 0 5 0.0%
-BANK1 100 0 0 6 0.0%
-BITBANK2 100 0 0 7 0.0%
-BANK2 100 0 0 8 0.0%
-ABS 0 0 0 9 0.0%
-BITBANK3 100 0 0 10 0.0%
-BANK3 100 0 0 11 0.0%
-BITBANK4 100 0 0 12 0.0%
-BANK4 100 0 0 13 0.0%
-BITBANK5 100 0 0 14 0.0%
-BANK5 100 0 0 15 0.0%
-BIGRAM 5FF 0 0 16 0.0%
-DATA 0 0 0 17 0.0%
-BITSFR_1 0 0 0 200 0.0%
-SFR_1 0 0 0 200 0.0%
-BITSFR 0 0 0 200 0.0%
-SFR 0 0 0 200 0.0%
-
-
-Microchip Technology PIC18 Macro Assembler V1.44 build -154322312
-Symbol Table Thu Feb 22 10:47:56 2018
-
- l12 7FEE l13 7FDC l19 7EF4
- __CFG_CP0$OFF 000000 __CFG_CP1$OFF 000000 __CFG_LVP$ON 000000
- l700 7E68 l832 7FDC __CFG_CPB$OFF 000000
- __CFG_CPD$OFF 000000 _RCIF 007CF5 _TXIF 007CF4
- _main 7ED4 midi_note_on@channel 0008 fsr2h 000FDA
- indf2 000FDF fsr2l 000FD9 __CFG_BORV$190 000000
- start 0000 __CFG_IESO$OFF 000000 midi_note_on@pkt 0006
- ___param_bank 000000 ?_main 0001 __CFG_WDTEN$ON 000000
- _RCREG 000FAE _SPBRG 000FAF _TXREG 000FAD
- __CFG_WRT0$OFF 000000 __CFG_WRT1$OFF 000000 __CFG_EBTR0$OFF 000000
- __CFG_FCMEN$OFF 000000 __CFG_EBTR1$OFF 000000 __CFG_WRTB$OFF 000000
- __CFG_WRTC$OFF 000000 __CFG_WRTD$OFF 000000 __CFG_EBTRB$OFF 000000
- __CFG_MCLRE$EXTMCLR 000000 ?_eusart_init 0001 _putch 7E66
- _eusart_write_midi 7F78 __end_of_midi_set_status 7EAE status 000FD8
- __CFG_HFOFST$ON 000000 ?_eusart_write_midi 0002 __CFG_PBADEN$ON 000000
- eusart_write_midi@length 0006 __initialization 7E60 midi_note_on@note 000A
- __end_of_main 7F02 ??_eusart_write_midi 0004 midi_note_on@velocity 000B
- ??_main 000E ?_midi_note_on 0006 __activetblptr 000000
- __end_of_eusart_write_midi 8000 ?_putch 0001 _TRISC6 007CA6
- _TRISC7 007CA7 __CFG_XINST$OFF 000000 __CFG_STVREN$ON 000000
- __end_of_midi_set_channel 7ED4 midi_set_status@status 0003 ??_midi_note_on 000C
- putch@c 0001 __accesstop 0060 __end_of__initialization 7E60
- ?_midi_set_status 0001 ___rparam_used 000001 __pcstackCOMRAM 0001
- __end_of_putch 7E72 __size_of_eusart_write_midi 0088 ??_putch 0001
- __CFG_PLLCFG$OFF 000000 __size_of_eusart_init 0018 __CFG_CCP2MX$PORTC1 000000
- __CFG_CCP3MX$PORTB5 000000 __end_of_midi_note_on 7F78 eusart_write_midi@pkt 0002
- __CFG_PWRTEN$OFF 000000 __Hparam 0000 __Lparam 0000
- __pcinit 7E60 __ramtop 0600 __ptext0 7ED4
- __ptext1 7F02 __ptext2 7E8A __ptext3 7EAE
- __ptext4 7F78 __ptext5 7E66 __ptext6 7E72
- end_of_initialization 7E60 _RCSTAbits 000FAB postdec2 000FDD
- postinc2 000FDE ?_midi_set_channel 0001 ??_midi_set_channel 0005
- _TXSTAbits 000FAC midi_set_channel@channel 0003 _BAUDCONbits 000FB8
- start_initialization 7E60 __size_of_midi_note_on 0076 __size_of_midi_set_status 0024
- _midi_note_on 7F02 ??_eusart_init 0001 midi_set_status@pkt 0001
- __CFG_PRICLKEN$ON 000000 main@sample_message 000E __size_of_putch 000C
- __end_of_eusart_init 7E8A __CFG_WDTPS$32768 000000 ??_midi_set_status 0004
- __size_of_midi_set_channel 0026 eusart_write_midi@data 0008 __Hrparam 0000
- __Lrparam 0000 __CFG_BOREN$SBORDIS 000000 __CFG_P2BMX$PORTD2 000000
- _eusart_init 7E72 __size_of_main 002E midi_set_channel@pkt 0001
- __CFG_T3CMX$PORTC0 000000 __CFG_FOSC$ECHPIO6 000000 _midi_set_channel 7EAE
- _midi_set_status 7E8A
diff --git a/src/dist/default/production/src.production.map b/src/dist/default/production/src.production.map
deleted file mode 100644
index 84c417f..0000000
--- a/src/dist/default/production/src.production.map
+++ /dev/null
@@ -1,634 +0,0 @@
-Microchip MPLAB XC8 Compiler V1.44 ()
-
-Linker command line:
-
--W-3 --edf=C:\Program Files\Microchip\xc8\v1.44\dat\en_msgs.txt -cs \
- -h+dist/default/production\src.production.sym \
- --cmf=dist/default/production\src.production.cmf -z -Q18F45K22 \
- -oC:\Users\_prossn\AppData\Local\Temp\s4jk.2 \
- -Mdist/default/production/src.production.map -E1 -ver=XC8 \
- -ASTACK=060h-05ffh -pstack=STACK -ACODE=00h-07FFFh -ACONST=00h-07FFFh \
- -ASMALLCONST=0600h-06FFhx122 -AMEDIUMCONST=0600h-07FFFh -ACOMRAM=01h-05Fh \
- -AABS1=00h-05FFh -ABIGRAM=01h-05FFh -ARAM=060h-0FFh,0100h-01FFhx5 \
- -ABANK0=060h-0FFh -ABANK1=0100h-01FFh -ABANK2=0200h-02FFh \
- -ABANK3=0300h-03FFh -ABANK4=0400h-04FFh -ABANK5=0500h-05FFh \
- -ASFR=0F38h-0F5Fh,0F60h-0FFFh \
- -preset_vec=00h,intcode,intcodelo,powerup,init -pramtop=0600h \
- -psmallconst=SMALLCONST -pmediumconst=MEDIUMCONST -pconst=CONST \
- -AFARRAM=00h-00h -ACONFIG=0300000h-030000Dh -pconfig=CONFIG \
- -AIDLOC=0200000h-0200007h -pidloc=IDLOC -AEEDATA=0F00000h-0F000FFh \
- -peeprom_data=EEDATA \
- -prdata=COMRAM,nvrram=COMRAM,nvbit=COMRAM,rbss=COMRAM,rbit=COMRAM \
- -pfarbss=FARRAM,fardata=FARRAM,nvFARRAM=FARRAM \
- -pintsave_regs=BIGRAM,bigbss=BIGRAM,bigdata=BIGRAM -pbss=RAM \
- -pidata=CODE,irdata=CODE,ibigdata=CODE,ifardata=CODE -prparam=COMRAM \
- C:\Users\_prossn\AppData\Local\Temp\s4jk.obj \
- dist/default/production\src.production.obj
-
-Object code version is 3.11
-
-Machine type is 18F45K22
-
-Call graph: (short form)
-
-
-
-
- Name Link Load Length Selector Space Scale
-C:\Users\_prossn\AppData\Local\Temp\s4jk.obj
- init 0 0 4 0 0
- idloc 200000 200000 8 200000 0
- config 300000 300000 E 300000 0
-dist/default/production\src.production.obj
- text6 7E72 7E72 18 3F39 0
- text5 7E66 7E66 C 3F33 0
- text4 7F78 7F78 88 3FBC 0
- text3 7EAE 7EAE 26 3F57 0
- text2 7E8A 7E8A 24 3F45 0
- text1 7F02 7F02 76 3F81 0
- text0 7ED4 7ED4 2E 3F6A 0
- cstackCOMRAM 1 1 14 1 1
- cinit 7E60 7E60 6 3F30 0
-
-TOTAL Name Link Load Length Space
- CLASS STACK
-
- CLASS CODE
- init 0 0 4 0
- text6 7E72 7E72 18 0
- text5 7E66 7E66 C 0
- text4 7F78 7F78 88 0
- text3 7EAE 7EAE 26 0
- text2 7E8A 7E8A 24 0
- text1 7F02 7F02 76 0
- text0 7ED4 7ED4 2E 0
- cinit 7E60 7E60 6 0
-
- CLASS CONST
-
- CLASS SMALLCONST
-
- CLASS MEDIUMCONST
-
- CLASS COMRAM
- cstackCOMRAM 1 1 14 1
-
- CLASS ABS1
-
- CLASS BIGRAM
-
- CLASS RAM
-
- CLASS BANK0
-
- CLASS BANK1
-
- CLASS BANK2
-
- CLASS BANK3
-
- CLASS BANK4
-
- CLASS BANK5
-
- CLASS SFR
-
- CLASS FARRAM
-
- CLASS CONFIG
- config 300000 300000 E 0
-
- CLASS IDLOC
- idloc 200000 200000 8 0
-
- CLASS EEDATA
-
-
-
-SEGMENTS Name Load Length Top Selector Space Class
-
- reset_vec 000000 000004 000004 0 0 CODE
- cstackCOMRAM 000001 000014 000015 1 1 COMRAM
- cinit 007E60 000006 007E66 3F30 0 CODE
- text5 007E66 00000C 007E72 3F33 0 CODE
- text6 007E72 000018 007E8A 3F39 0 CODE
- text2 007E8A 000024 007EAE 3F45 0 CODE
- text3 007EAE 000026 007ED4 3F57 0 CODE
- text0 007ED4 00002E 007F02 3F6A 0 CODE
- text1 007F02 000076 007F78 3F81 0 CODE
- text4 007F78 000088 008000 3FBC 0 CODE
- idloc 200000 000008 200008 200000 0 IDLOC
- config 300000 00000E 30000E 300000 0 CONFIG
-
-
-UNUSED ADDRESS RANGES
-
- Name Unused Largest block Delta
- BANK0 000060-0000FF A0
- BANK1 000100-0001FF 100
- BANK2 000200-0002FF 100
- BANK3 000300-0003FF 100
- BANK4 000400-0004FF 100
- BANK5 000500-0005FF 100
- BIGRAM 000015-0005FF 5EB
- CODE 000004-007E5F 7E5C
- COMRAM 000015-00005F 4B
- CONST 000004-007E5F 7E5C
- EEDATA F00000-F000FF 100
- MEDIUMCONST 000600-007E5F 7860
- RAM 000060-0005FF 100
- SFR 000F38-000FFF 28
- SMALLCONST 000600-007E5F 100
- STACK 000060-0005FF 5A0
-
- Symbol Table
-
-_BAUDCONbits (abs) 000FB8
-_RCIF (abs) 007CF5
-_RCREG (abs) 000FAE
-_RCSTAbits (abs) 000FAB
-_SPBRG (abs) 000FAF
-_TRISC6 (abs) 007CA6
-_TRISC7 (abs) 007CA7
-_TXIF (abs) 007CF4
-_TXREG (abs) 000FAD
-_TXSTAbits (abs) 000FAC
-__CFG_BOREN$SBORDIS (abs) 000000
-__CFG_BORV$190 (abs) 000000
-__CFG_CCP2MX$PORTC1 (abs) 000000
-__CFG_CCP3MX$PORTB5 (abs) 000000
-__CFG_CP0$OFF (abs) 000000
-__CFG_CP1$OFF (abs) 000000
-__CFG_CPB$OFF (abs) 000000
-__CFG_CPD$OFF (abs) 000000
-__CFG_EBTR0$OFF (abs) 000000
-__CFG_EBTR1$OFF (abs) 000000
-__CFG_EBTRB$OFF (abs) 000000
-__CFG_FCMEN$OFF (abs) 000000
-__CFG_FOSC$ECHPIO6 (abs) 000000
-__CFG_HFOFST$ON (abs) 000000
-__CFG_IESO$OFF (abs) 000000
-__CFG_LVP$ON (abs) 000000
-__CFG_MCLRE$EXTMCLR (abs) 000000
-__CFG_P2BMX$PORTD2 (abs) 000000
-__CFG_PBADEN$ON (abs) 000000
-__CFG_PLLCFG$OFF (abs) 000000
-__CFG_PRICLKEN$ON (abs) 000000
-__CFG_PWRTEN$OFF (abs) 000000
-__CFG_STVREN$ON (abs) 000000
-__CFG_T3CMX$PORTC0 (abs) 000000
-__CFG_WDTEN$ON (abs) 000000
-__CFG_WDTPS$32768 (abs) 000000
-__CFG_WRT0$OFF (abs) 000000
-__CFG_WRT1$OFF (abs) 000000
-__CFG_WRTB$OFF (abs) 000000
-__CFG_WRTC$OFF (abs) 000000
-__CFG_WRTD$OFF (abs) 000000
-__CFG_XINST$OFF (abs) 000000
-__HRAM (abs) 000000
-__Habs1 abs1 000000
-__Hbank0 bank0 000000
-__Hbank1 bank1 000000
-__Hbank2 bank2 000000
-__Hbank3 bank3 000000
-__Hbank4 bank4 000000
-__Hbank5 bank5 000000
-__Hbigbss bigbss 000000
-__Hbigdata bigdata 000000
-__Hbigram bigram 000000
-__Hbss bss 000000
-__Hcinit cinit 000000
-__Hclrtext clrtext 000000
-__Hcomram comram 000000
-__Hconfig config 30000E
-__Hconst const 000000
-__HcstackCOMRAM cstackCOMRAM 000000
-__Hdata data 000000
-__Heeprom_data eeprom_data 000000
-__Hfarbss farbss 000000
-__Hfardata fardata 000000
-__Hibigdata ibigdata 000000
-__Hidata idata 000000
-__Hidloc idloc 200008
-__Hifardata ifardata 000000
-__Hinit init 000004
-__Hintcode intcode 000000
-__Hintcode_body intcode_body 000000
-__Hintcodelo intcodelo 000000
-__Hintentry intentry 000000
-__Hintret intret 000000
-__Hintsave_regs intsave_regs 000000
-__Hirdata irdata 000000
-__Hmediumconst mediumconst 000000
-__HnvFARRAM nvFARRAM 000000
-__Hnvbit nvbit 000000
-__Hnvrram nvrram 000000
-__Hparam rparam 000000
-__Hpowerup powerup 000000
-__Hram ram 000000
-__Hramtop ramtop 000600
-__Hrbit rbit 000000
-__Hrbss rbss 000000
-__Hrdata rdata 000000
-__Hreset_vec reset_vec 000000
-__Hrparam rparam 000000
-__Hsfr sfr 000000
-__Hsmallconst smallconst 000000
-__Hspace_0 (abs) 30000E
-__Hspace_1 (abs) 000015
-__Hspace_2 (abs) 000000
-__Hstack stack 000000
-__Hstruct struct 000000
-__Htemp temp 000000
-__Htext text 000000
-__Htext0 text0 000000
-__Htext1 text1 000000
-__Htext2 text2 000000
-__Htext3 text3 000000
-__Htext4 text4 000000
-__Htext5 text5 000000
-__Htext6 text6 000000
-__LRAM (abs) 000001
-__Labs1 abs1 000000
-__Lbank0 bank0 000000
-__Lbank1 bank1 000000
-__Lbank2 bank2 000000
-__Lbank3 bank3 000000
-__Lbank4 bank4 000000
-__Lbank5 bank5 000000
-__Lbigbss bigbss 000000
-__Lbigdata bigdata 000000
-__Lbigram bigram 000000
-__Lbss bss 000000
-__Lcinit cinit 000000
-__Lclrtext clrtext 000000
-__Lcomram comram 000000
-__Lconfig config 300000
-__Lconst const 000000
-__LcstackCOMRAM cstackCOMRAM 000000
-__Ldata data 000000
-__Leeprom_data eeprom_data 000000
-__Lfarbss farbss 000000
-__Lfardata fardata 000000
-__Libigdata ibigdata 000000
-__Lidata idata 000000
-__Lidloc idloc 200000
-__Lifardata ifardata 000000
-__Linit init 000000
-__Lintcode intcode 000000
-__Lintcode_body intcode_body 000000
-__Lintcodelo intcodelo 000000
-__Lintentry intentry 000000
-__Lintret intret 000000
-__Lintsave_regs intsave_regs 000000
-__Lirdata irdata 000000
-__Lmediumconst mediumconst 000000
-__LnvFARRAM nvFARRAM 000000
-__Lnvbit nvbit 000000
-__Lnvrram nvrram 000000
-__Lparam rparam 000000
-__Lpowerup powerup 000000
-__Lram ram 000000
-__Lramtop ramtop 000600
-__Lrbit rbit 000000
-__Lrbss rbss 000000
-__Lrdata rdata 000000
-__Lreset_vec reset_vec 000000
-__Lrparam rparam 000000
-__Lsfr sfr 000000
-__Lsmallconst smallconst 000000
-__Lspace_0 (abs) 000000
-__Lspace_1 (abs) 000000
-__Lspace_2 (abs) 000000
-__Lstack stack 000000
-__Lstruct struct 000000
-__Ltemp temp 000000
-__Ltext text 000000
-__Ltext0 text0 000000
-__Ltext1 text1 000000
-__Ltext2 text2 000000
-__Ltext3 text3 000000
-__Ltext4 text4 000000
-__Ltext5 text5 000000
-__Ltext6 text6 000000
-__S0 (abs) 30000E
-__S1 (abs) 000015
-__S2 (abs) 000000
-___inthi_sp stack 000000
-___intlo_sp stack 000000
-___param_bank (abs) 000000
-___rparam_used (abs) 000001
-___sp stack 000000
-__accesstop (abs) 000060
-__activetblptr (abs) 000000
-__end_of__initialization cinit 007E60
-__end_of_eusart_init text6 007E8A
-__end_of_eusart_write_midi text4 008000
-__end_of_main text0 007F02
-__end_of_midi_note_on text1 007F78
-__end_of_midi_set_channel text3 007ED4
-__end_of_midi_set_status text2 007EAE
-__end_of_putch text5 007E72
-__initialization cinit 007E60
-__mediumconst mediumconst 000000
-__pcinit cinit 007E60
-__pcstackCOMRAM cstackCOMRAM 000001
-__ptext0 text0 007ED4
-__ptext1 text1 007F02
-__ptext2 text2 007E8A
-__ptext3 text3 007EAE
-__ptext4 text4 007F78
-__ptext5 text5 007E66
-__ptext6 text6 007E72
-__ramtop ramtop 000600
-__size_of_eusart_init (abs) 000000
-__size_of_eusart_write_midi (abs) 000000
-__size_of_main (abs) 000000
-__size_of_midi_note_on (abs) 000000
-__size_of_midi_set_channel (abs) 000000
-__size_of_midi_set_status (abs) 000000
-__size_of_putch (abs) 000000
-__smallconst smallconst 000000
-_eusart_init text6 007E72
-_eusart_write_midi text4 007F78
-_main text0 007ED4
-_midi_note_on text1 007F02
-_midi_set_channel text3 007EAE
-_midi_set_status text2 007E8A
-_putch text5 007E66
-end_of_initialization cinit 007E60
-eusart_write_midi@data cstackCOMRAM 000008
-eusart_write_midi@length cstackCOMRAM 000006
-eusart_write_midi@pkt cstackCOMRAM 000002
-intlevel0 text 000000
-intlevel1 text 000000
-intlevel2 text 000000
-intlevel3 text 000000
-main@sample_message cstackCOMRAM 00000E
-midi_note_on@channel cstackCOMRAM 000008
-midi_note_on@note cstackCOMRAM 00000A
-midi_note_on@pkt cstackCOMRAM 000006
-midi_note_on@velocity cstackCOMRAM 00000B
-midi_set_channel@channel cstackCOMRAM 000003
-midi_set_channel@pkt cstackCOMRAM 000001
-midi_set_status@pkt cstackCOMRAM 000001
-midi_set_status@status cstackCOMRAM 000003
-putch@c cstackCOMRAM 000001
-stackhi (abs) 0005FF
-stacklo (abs) 000060
-start init 000000
-start_initialization cinit 007E60
-
-
-FUNCTION INFORMATION:
-
- *************** function _main *****************
- Defined at:
- line 105 in file "main.c"
- Parameters: Size Location Type
- None
- Auto vars: Size Location Type
- sample_messa 7 13[COMRAM] struct .
- Return value: Size Location Type
- 1 wreg void
- Registers used:
- wreg, fsr2l, fsr2h, status,2, status,0, cstack
- Tracked objects:
- On entry :
- On exit :
- Unchanged:
- Data sizes: COMRAM BANK0 BANK1 BANK2 BANK3 BANK4 BANK5
- Params: 0 0 0 0 0 0 0
- Locals: 7 0 0 0 0 0 0
- Temps: 0 0 0 0 0 0 0
- Totals: 7 0 0 0 0 0 0
-Total ram usage: 7 bytes
- Hardware stack levels required when called: 2
- This function calls:
- _eusart_init
- _eusart_write_midi
- _midi_note_on
- This function is called by:
- Startup code after reset
- This function uses a non-reentrant model
-
-
- *************** function _midi_note_on *****************
- Defined at:
- line 64 in file "midi.c"
- Parameters: Size Location Type
- pkt 2 5[COMRAM] PTR struct .
- -> main@sample_message(7),
- channel 2 7[COMRAM] unsigned int
- note 1 9[COMRAM] enum E31
- velocity 1 10[COMRAM] unsigned char
- Auto vars: Size Location Type
- None
- Return value: Size Location Type
- 2 5[COMRAM] int
- Registers used:
- wreg, fsr2l, fsr2h, status,2, status,0, cstack
- Tracked objects:
- On entry :
- On exit :
- Unchanged:
- Data sizes: COMRAM BANK0 BANK1 BANK2 BANK3 BANK4 BANK5
- Params: 6 0 0 0 0 0 0
- Locals: 0 0 0 0 0 0 0
- Temps: 2 0 0 0 0 0 0
- Totals: 8 0 0 0 0 0 0
-Total ram usage: 8 bytes
- Hardware stack levels used: 1
- Hardware stack levels required when called: 1
- This function calls:
- _midi_set_channel
- _midi_set_status
- This function is called by:
- _main
- This function uses a non-reentrant model
-
-
- *************** function _midi_set_status *****************
- Defined at:
- line 42 in file "midi.c"
- Parameters: Size Location Type
- pkt 2 0[COMRAM] PTR struct .
- -> main@sample_message(7),
- status 1 2[COMRAM] enum E40
- Auto vars: Size Location Type
- None
- Return value: Size Location Type
- 2 0[COMRAM] int
- Registers used:
- wreg, fsr2l, fsr2h, status,2, status,0
- Tracked objects:
- On entry :
- On exit :
- Unchanged:
- Data sizes: COMRAM BANK0 BANK1 BANK2 BANK3 BANK4 BANK5
- Params: 3 0 0 0 0 0 0
- Locals: 0 0 0 0 0 0 0
- Temps: 1 0 0 0 0 0 0
- Totals: 4 0 0 0 0 0 0
-Total ram usage: 4 bytes
- Hardware stack levels used: 1
- This function calls:
- Nothing
- This function is called by:
- _midi_note_on
- _midi_note_off
- This function uses a non-reentrant model
-
-
- *************** function _midi_set_channel *****************
- Defined at:
- line 53 in file "midi.c"
- Parameters: Size Location Type
- pkt 2 0[COMRAM] PTR struct .
- -> main@sample_message(7),
- channel 2 2[COMRAM] unsigned int
- Auto vars: Size Location Type
- None
- Return value: Size Location Type
- 2 0[COMRAM] int
- Registers used:
- wreg, fsr2l, fsr2h, status,2, status,0
- Tracked objects:
- On entry :
- On exit :
- Unchanged:
- Data sizes: COMRAM BANK0 BANK1 BANK2 BANK3 BANK4 BANK5
- Params: 4 0 0 0 0 0 0
- Locals: 0 0 0 0 0 0 0
- Temps: 1 0 0 0 0 0 0
- Totals: 5 0 0 0 0 0 0
-Total ram usage: 5 bytes
- Hardware stack levels used: 1
- This function calls:
- Nothing
- This function is called by:
- _midi_note_on
- _midi_note_off
- This function uses a non-reentrant model
-
-
- *************** function _eusart_write_midi *****************
- Defined at:
- line 81 in file "main.c"
- Parameters: Size Location Type
- pkt 2 1[COMRAM] PTR struct .
- -> main@sample_message(7),
- Auto vars: Size Location Type
- data 2 7[COMRAM] PTR unsigned char
- -> sample_message.data(4), main@sample_message(7),
- length 2 5[COMRAM] unsigned int
- Return value: Size Location Type
- 2 1[COMRAM] int
- Registers used:
- wreg, fsr2l, fsr2h, status,2, status,0, cstack
- Tracked objects:
- On entry :
- On exit :
- Unchanged:
- Data sizes: COMRAM BANK0 BANK1 BANK2 BANK3 BANK4 BANK5
- Params: 2 0 0 0 0 0 0
- Locals: 4 0 0 0 0 0 0
- Temps: 2 0 0 0 0 0 0
- Totals: 8 0 0 0 0 0 0
-Total ram usage: 8 bytes
- Hardware stack levels used: 1
- Hardware stack levels required when called: 1
- This function calls:
- _putch
- This function is called by:
- _main
- This function uses a non-reentrant model
-
-
- *************** function _putch *****************
- Defined at:
- line 23 in file "rs232.c"
- Parameters: Size Location Type
- c 1 wreg unsigned char
- Auto vars: Size Location Type
- c 1 0[COMRAM] unsigned char
- Return value: Size Location Type
- 1 wreg void
- Registers used:
- wreg
- Tracked objects:
- On entry :
- On exit :
- Unchanged:
- Data sizes: COMRAM BANK0 BANK1 BANK2 BANK3 BANK4 BANK5
- Params: 0 0 0 0 0 0 0
- Locals: 1 0 0 0 0 0 0
- Temps: 0 0 0 0 0 0 0
- Totals: 1 0 0 0 0 0 0
-Total ram usage: 1 bytes
- Hardware stack levels used: 1
- This function calls:
- Nothing
- This function is called by:
- _eusart_write_midi
- _getche
- This function uses a non-reentrant model
-
-
- *************** function _eusart_init *****************
- Defined at:
- line 4 in file "rs232.c"
- Parameters: Size Location Type
- None
- Auto vars: Size Location Type
- None
- Return value: Size Location Type
- 1 wreg void
- Registers used:
- wreg, status,2
- Tracked objects:
- On entry :
- On exit :
- Unchanged:
- Data sizes: COMRAM BANK0 BANK1 BANK2 BANK3 BANK4 BANK5
- Params: 0 0 0 0 0 0 0
- Locals: 0 0 0 0 0 0 0
- Temps: 0 0 0 0 0 0 0
- Totals: 0 0 0 0 0 0 0
-Total ram usage: 0 bytes
- Hardware stack levels used: 1
- This function calls:
- Nothing
- This function is called by:
- _main
- This function uses a non-reentrant model
-
-
-
-MODULE INFORMATION
-
-Module Function Class Link Load Size
-rs232.c
- _putch CODE 7E66 0000 13
- _eusart_init CODE 7E72 0000 25
-
-rs232.c estimated size: 38
-
-shared
- __initialization CODE 7E60 0000 1
-
-shared estimated size: 1
-
-midi.c
- _midi_set_channel CODE 7EAE 0000 39
- _midi_note_on CODE 7F02 0000 119
- _midi_set_status CODE 7E8A 0000 37
-
-midi.c estimated size: 195
-
-main.c
- _eusart_write_midi CODE 7F78 0000 137
- _main CODE 7ED4 0000 47
-
-main.c estimated size: 184
-
diff --git a/src/dist/default/production/src.production.mum b/src/dist/default/production/src.production.mum
deleted file mode 100644
index 5bf520f..0000000
--- a/src/dist/default/production/src.production.mum
+++ /dev/null
@@ -1,9 +0,0 @@
-
-Memory Summary:
- Program space used 1A0h ( 416) of 7A00h bytes ( 1.3%)
- Data space used 14h ( 20) of 5FFh bytes ( 1.3%)
- Configuration bits used 7h ( 7) of 7h words (100.0%)
- EEPROM space used 0h ( 0) of 100h bytes ( 0.0%)
- ID Location space used 8h ( 8) of 8h bytes (100.0%)
- Data stack space used 0h ( 0) of 5A0h bytes ( 0.0%)
-
diff --git a/src/dist/default/production/src.production.obj b/src/dist/default/production/src.production.obj
deleted file mode 100644
index 70358f1..0000000
--- a/src/dist/default/production/src.production.obj
+++ /dev/null
Binary files differ
diff --git a/src/dist/default/production/src.production.rlf b/src/dist/default/production/src.production.rlf
deleted file mode 100644
index 77628c7..0000000
--- a/src/dist/default/production/src.production.rlf
+++ /dev/null
Binary files differ
diff --git a/src/dist/default/production/src.production.sdb b/src/dist/default/production/src.production.sdb
deleted file mode 100644
index 667b2f7..0000000
--- a/src/dist/default/production/src.production.sdb
+++ /dev/null
@@ -1,253 +0,0 @@
-[p LITE_MODE AUTOSTATIC LFSROK EMI_WORD ]
-[d version 1.1 ]
-[d edition pro ]
-[d chip 18F45K22 ]
-[d frameptr 4065 ]
-"108 Z:\SAMB_4\projects\xilofono\src\main.c
-[e E39 . `uc
-C 0
-D 1
-E 2
-F 3
-G 4
-A 5
-B 6
-]
-"43 Z:\SAMB_4\projects\xilofono\src\midi.c
-[e E40 . `uc
-NOTE_ON 8
-NOTE_OFF 9
-POLYPHONIC_KEYPRESS 10
-CONTROLLER 11
-PROGRAM_CHANGE 12
-CHANNEL_PRESSURE 13
-PITCH_BLEND 15
-]
-"65
-[e E31 . `uc
-C 0
-D 1
-E 2
-F 3
-G 4
-A 5
-B 6
-]
-"62 C:\Program Files\Microchip\xc8\v1.44\sources\common\float.c
-[v ___ftpack __ftpack `(f 1 e 3 0 ]
-"86 C:\Program Files\Microchip\xc8\v1.44\sources\common\ftadd.c
-[v ___ftadd __ftadd `(f 1 e 3 0 ]
-"54 C:\Program Files\Microchip\xc8\v1.44\sources\common\ftdiv.c
-[v ___ftdiv __ftdiv `(f 1 e 3 0 ]
-"62 C:\Program Files\Microchip\xc8\v1.44\sources\common\ftmul.c
-[v ___ftmul __ftmul `(f 1 e 3 0 ]
-"20 C:\Program Files\Microchip\xc8\v1.44\sources\common\ftsub.c
-[v ___ftsub __ftsub `(f 1 e 3 0 ]
-"10 C:\Program Files\Microchip\xc8\v1.44\sources\common\sprcadd.c
-[v ___fladd __fladd `(d 1 e 3 0 ]
-"245
-[v ___flsub __flsub `(d 1 e 3 0 ]
-"11 C:\Program Files\Microchip\xc8\v1.44\sources\common\sprcdiv.c
-[v ___fldiv __fldiv `(d 1 e 3 0 ]
-"8 C:\Program Files\Microchip\xc8\v1.44\sources\common\sprcmul.c
-[v ___flmul __flmul `(d 1 e 3 0 ]
-"15 C:\Program Files\Microchip\xc8\v1.44\sources\common\Umul32.c
-[v ___lmul __lmul `(ul 1 e 4 0 ]
-"81 Z:\SAMB_4\projects\xilofono\src\main.c
-[v _eusart_write_midi eusart_write_midi `(i 1 e 2 0 ]
-"105
-[v _main main `(v 1 e 1 0 ]
-"42 Z:\SAMB_4\projects\xilofono\src\midi.c
-[v _midi_set_status midi_set_status `(i 1 e 2 0 ]
-"53
-[v _midi_set_channel midi_set_channel `(i 1 e 2 0 ]
-"64
-[v _midi_note_on midi_note_on `(i 1 e 2 0 ]
-"4 Z:\SAMB_4\projects\xilofono\src\rs232.c
-[v _eusart_init eusart_init `(v 1 e 1 0 ]
-"23
-[v _putch putch `(v 1 e 1 0 ]
-"29
-[v _getch getch `(uc 1 e 1 0 ]
-[s S120 . 1 `uc 1 RX9D 1 0 :1:0
-`uc 1 OERR 1 0 :1:1
-`uc 1 FERR 1 0 :1:2
-`uc 1 ADDEN 1 0 :1:3
-`uc 1 CREN 1 0 :1:4
-`uc 1 SREN 1 0 :1:5
-`uc 1 RX9 1 0 :1:6
-`uc 1 SPEN 1 0 :1:7
-]
-"10543 C:\Program Files\Microchip\xc8\v1.44\include\pic18f45k22.h
-[s S129 . 1 `uc 1 . 1 0 :3:0
-`uc 1 ADEN 1 0 :1:3
-]
-[s S132 . 1 `uc 1 RX9D1 1 0 :1:0
-`uc 1 OERR1 1 0 :1:1
-`uc 1 FERR1 1 0 :1:2
-`uc 1 ADDEN1 1 0 :1:3
-`uc 1 CREN1 1 0 :1:4
-`uc 1 SREN1 1 0 :1:5
-`uc 1 RX91 1 0 :1:6
-`uc 1 SPEN1 1 0 :1:7
-]
-[s S141 . 1 `uc 1 RCD8 1 0 :1:0
-`uc 1 . 1 0 :5:1
-`uc 1 RC8_9 1 0 :1:6
-]
-[s S145 . 1 `uc 1 . 1 0 :6:0
-`uc 1 RC9 1 0 :1:6
-]
-[s S148 . 1 `uc 1 . 1 0 :5:0
-`uc 1 SRENA 1 0 :1:5
-]
-[u S151 . 1 `S120 1 . 1 0 `S129 1 . 1 0 `S132 1 . 1 0 `S141 1 . 1 0 `S145 1 . 1 0 `S148 1 . 1 0 ]
-[v _RCSTAbits RCSTAbits `VES151 1 e 1 @4011 ]
-[s S71 . 1 `uc 1 TX9D 1 0 :1:0
-`uc 1 TRMT 1 0 :1:1
-`uc 1 BRGH 1 0 :1:2
-`uc 1 SENDB 1 0 :1:3
-`uc 1 SYNC 1 0 :1:4
-`uc 1 TXEN 1 0 :1:5
-`uc 1 TX9 1 0 :1:6
-`uc 1 CSRC 1 0 :1:7
-]
-"10960
-[s S80 . 1 `uc 1 TX9D1 1 0 :1:0
-`uc 1 TRMT1 1 0 :1:1
-`uc 1 BRGH1 1 0 :1:2
-`uc 1 SENDB1 1 0 :1:3
-`uc 1 SYNC1 1 0 :1:4
-`uc 1 TXEN1 1 0 :1:5
-`uc 1 TX91 1 0 :1:6
-`uc 1 CSRC1 1 0 :1:7
-]
-[s S89 . 1 `uc 1 TXD8 1 0 :1:0
-`uc 1 . 1 0 :5:1
-`uc 1 TX8_9 1 0 :1:6
-]
-[u S93 . 1 `S71 1 . 1 0 `S80 1 . 1 0 `S89 1 . 1 0 ]
-[v _TXSTAbits TXSTAbits `VES93 1 e 1 @4012 ]
-"11179
-[v _TXREG TXREG `VEuc 1 e 1 @4013 ]
-"11257
-[v _RCREG RCREG `VEuc 1 e 1 @4014 ]
-"11335
-[v _SPBRG SPBRG `VEuc 1 e 1 @4015 ]
-[s S191 . 1 `uc 1 ABDEN 1 0 :1:0
-`uc 1 WUE 1 0 :1:1
-`uc 1 . 1 0 :1:2
-`uc 1 BRG16 1 0 :1:3
-`uc 1 CKTXP 1 0 :1:4
-`uc 1 DTRXP 1 0 :1:5
-`uc 1 RCIDL 1 0 :1:6
-`uc 1 ABDOVF 1 0 :1:7
-]
-"12600
-[s S200 . 1 `uc 1 . 1 0 :4:0
-`uc 1 SCKP 1 0 :1:4
-]
-[s S203 . 1 `uc 1 ABDEN1 1 0 :1:0
-`uc 1 WUE1 1 0 :1:1
-`uc 1 . 1 0 :1:2
-`uc 1 BRG161 1 0 :1:3
-`uc 1 SCKP1 1 0 :1:4
-`uc 1 DTRXP1 1 0 :1:5
-`uc 1 RCIDL1 1 0 :1:6
-`uc 1 ABDOVF1 1 0 :1:7
-]
-[s S212 . 1 `uc 1 . 1 0 :4:0
-`uc 1 TXCKP 1 0 :1:4
-`uc 1 RXDTP 1 0 :1:5
-`uc 1 RCMT 1 0 :1:6
-]
-[s S217 . 1 `uc 1 . 1 0 :4:0
-`uc 1 TXCKP1 1 0 :1:4
-`uc 1 RXDTP1 1 0 :1:5
-`uc 1 RCMT1 1 0 :1:6
-]
-[s S222 . 1 `uc 1 . 1 0 :5:0
-`uc 1 RXCKP 1 0 :1:5
-]
-[s S225 . 1 `uc 1 . 1 0 :1:0
-`uc 1 W4E 1 0 :1:1
-]
-[u S228 . 1 `S191 1 . 1 0 `S200 1 . 1 0 `S203 1 . 1 0 `S212 1 . 1 0 `S217 1 . 1 0 `S222 1 . 1 0 `S225 1 . 1 0 ]
-[v _BAUDCONbits BAUDCONbits `VES228 1 e 1 @4024 ]
-"18768
-[v _RCIF RCIF `VEb 1 e 0 @31989 ]
-"19440
-[v _TRISC6 TRISC6 `VEb 1 e 0 @31910 ]
-"19442
-[v _TRISC7 TRISC7 `VEb 1 e 0 @31911 ]
-"19540
-[v _TXIF TXIF `VEb 1 e 0 @31988 ]
-"105 Z:\SAMB_4\projects\xilofono\src\main.c
-[v _main main `(v 1 e 1 0 ]
-{
-[s S21 . 7 `uc 1 status 1 0 :4:0
-`uc 1 channel 1 0 :4:4
-`ui 1 data_size 2 1 `[4]uc 1 data 4 3 ]
-"107
-[v main@sample_message sample_message `S21 1 a 7 13 ]
-"116
-} 0
-"64 Z:\SAMB_4\projects\xilofono\src\midi.c
-[v _midi_note_on midi_note_on `(i 1 e 2 0 ]
-{
-[s S21 . 7 `uc 1 status 1 0 :4:0
-`uc 1 channel 1 0 :4:4
-`ui 1 data_size 2 1 `[4]uc 1 data 4 3 ]
-[v midi_note_on@pkt pkt `*.39S21 1 p 2 5 ]
-[v midi_note_on@channel channel `ui 1 p 2 7 ]
-[v midi_note_on@note note `E31 1 p 1 9 ]
-[v midi_note_on@velocity velocity `uc 1 p 1 10 ]
-"85
-} 0
-"42
-[v _midi_set_status midi_set_status `(i 1 e 2 0 ]
-{
-[s S21 . 7 `uc 1 status 1 0 :4:0
-`uc 1 channel 1 0 :4:4
-`ui 1 data_size 2 1 `[4]uc 1 data 4 3 ]
-[v midi_set_status@pkt pkt `*.39S21 1 p 2 0 ]
-[v midi_set_status@status status `E40 1 p 1 2 ]
-"51
-} 0
-"53
-[v _midi_set_channel midi_set_channel `(i 1 e 2 0 ]
-{
-[s S21 . 7 `uc 1 status 1 0 :4:0
-`uc 1 channel 1 0 :4:4
-`ui 1 data_size 2 1 `[4]uc 1 data 4 3 ]
-[v midi_set_channel@pkt pkt `*.39S21 1 p 2 0 ]
-[v midi_set_channel@channel channel `ui 1 p 2 2 ]
-"62
-} 0
-"81 Z:\SAMB_4\projects\xilofono\src\main.c
-[v _eusart_write_midi eusart_write_midi `(i 1 e 2 0 ]
-{
-"92
-[v eusart_write_midi@data data `*.39uc 1 a 2 7 ]
-"91
-[v eusart_write_midi@length length `ui 1 a 2 5 ]
-[s S21 . 7 `uc 1 status 1 0 :4:0
-`uc 1 channel 1 0 :4:4
-`ui 1 data_size 2 1 `[4]uc 1 data 4 3 ]
-"81
-[v eusart_write_midi@pkt pkt `*.39S21 1 p 2 1 ]
-"101
-} 0
-"23 Z:\SAMB_4\projects\xilofono\src\rs232.c
-[v _putch putch `(v 1 e 1 0 ]
-{
-[v putch@c c `uc 1 a 1 wreg ]
-[v putch@c c `uc 1 a 1 wreg ]
-[v putch@c c `uc 1 a 1 0 ]
-"27
-} 0
-"4
-[v _eusart_init eusart_init `(v 1 e 1 0 ]
-{
-"21
-} 0
diff --git a/src/dist/default/production/src.production.sym b/src/dist/default/production/src.production.sym
deleted file mode 100644
index c64cc64..0000000
--- a/src/dist/default/production/src.production.sym
+++ /dev/null
@@ -1,311 +0,0 @@
-__CFG_XINST$OFF 0 0 ABS 0
-__size_of_eusart_init 0 0 ABS 0
-main@sample_message E 0 COMRAM 1
-__S0 30000E 0 ABS 0
-__S1 15 0 ABS 0
-__S2 0 0 ABS 0
-__Hintentry 0 0 ABS 0
-__Lintentry 0 0 ABS 0
-midi_set_channel@pkt 1 0 COMRAM 1
-__CFG_PLLCFG$OFF 0 0 ABS 0
-__CFG_WDTEN$ON 0 0 ABS 0
-_RCIF 7CF5 0 ABS 0
-_TXIF 7CF4 0 ABS 0
-__end_of_eusart_write_midi 8000 0 CODE 0
-_main 7ED4 0 CODE 0
-___sp 0 0 STACK 2
-start 0 0 CODE 0
-eusart_write_midi@pkt 2 0 COMRAM 1
-_RCREG FAE 0 ABS 0
-_TXREG FAD 0 ABS 0
-_SPBRG FAF 0 ABS 0
-__Hirdata 0 0 CODE 0
-__Lirdata 0 0 CODE 0
-__HRAM 0 0 ABS 0
-__LRAM 1 0 ABS 0
-__CFG_WDTPS$32768 0 0 ABS 0
-__Hconfig 30000E 0 CONFIG 0
-__Lconfig 300000 0 CONFIG 0
-__Hbigram 0 0 ABS 0
-__Lbigram 0 0 ABS 0
-__Hrparam 0 0 COMRAM 1
-__Lrparam 0 0 COMRAM 1
-__Hram 0 0 ABS 0
-__Lram 0 0 ABS 0
-__Hcomram 0 0 ABS 0
-_putch 7E66 0 CODE 0
-__Lcomram 0 0 ABS 0
-__Hsfr 0 0 ABS 0
-__Lsfr 0 0 ABS 0
-eusart_write_midi@data 8 0 COMRAM 1
-__Hbss 0 0 RAM 1
-__CFG_STVREN$ON 0 0 ABS 0
-__Lbss 0 0 RAM 1
-___param_bank 0 0 ABS 0
-__Hnvrram 0 0 COMRAM 1
-__Lnvrram 0 0 COMRAM 1
-__size_of_midi_note_on 0 0 ABS 0
-_TRISC6 7CA6 0 ABS 0
-_TRISC7 7CA7 0 ABS 0
-__end_of_putch 7E72 0 CODE 0
-__Heeprom_data 0 0 EEDATA 0
-__Leeprom_data 0 0 EEDATA 0
-__Hintsave_regs 0 0 BIGRAM 1
-__Lintsave_regs 0 0 BIGRAM 1
-__Hbigbss 0 0 BIGRAM 1
-__Lbigbss 0 0 BIGRAM 1
-__Hintret 0 0 ABS 0
-__Lintret 0 0 ABS 0
-__Hramtop 600 0 RAM 0
-__Lramtop 600 0 RAM 0
-__Hstruct 0 0 COMRAM 1
-__Lstruct 0 0 COMRAM 1
-__Hbigdata 0 0 BIGRAM 1
-__Lbigdata 0 0 BIGRAM 1
-__Hmediumconst 0 0 MEDIUMCONST 0
-__Lmediumconst 0 0 MEDIUMCONST 0
-__Hfarbss 0 0 FARRAM 0
-__Lfarbss 0 0 FARRAM 0
-__Hintcode 0 0 CODE 0
-__Lintcode 0 0 CODE 0
-__Hfardata 0 0 FARRAM 0
-__Lfardata 0 0 FARRAM 0
-midi_note_on@velocity B 0 COMRAM 1
-__Habs1 0 0 ABS 0
-__Labs1 0 0 ABS 0
-__CFG_EBTR0$OFF 0 0 ABS 0
-__CFG_FOSC$ECHPIO6 0 0 ABS 0
-__HnvFARRAM 0 0 FARRAM 0
-__LnvFARRAM 0 0 FARRAM 0
-__CFG_EBTR1$OFF 0 0 ABS 0
-__CFG_CCP2MX$PORTC1 0 0 ABS 0
-putch@c 1 0 COMRAM 1
-__CFG_CCP3MX$PORTB5 0 0 ABS 0
-__Hdata 0 0 ABS 0
-__Ldata 0 0 ABS 0
-stackhi 5FF 0 ABS 0
-__Htemp 0 0 COMRAM 1
-__Ltemp 0 0 COMRAM 1
-stacklo 60 0 ABS 0
-__Hrbit 0 0 COMRAM 1
-__Lrbit 0 0 COMRAM 1
-__Hinit 4 0 CODE 0
-__Linit 0 0 CODE 0
-__Hintcodelo 0 0 CODE 0
-__Lintcodelo 0 0 CODE 0
-__Hrbss 0 0 COMRAM 1
-__end_of_main 7F02 0 CODE 0
-__Lrbss 0 0 COMRAM 1
-__Htext 0 0 ABS 0
-__Ltext 0 0 ABS 0
-__CFG_LVP$ON 0 0 ABS 0
-end_of_initialization 7E60 0 CODE 0
-_midi_set_status 7E8A 0 CODE 0
-__end_of_midi_set_channel 7ED4 0 CODE 0
-midi_note_on@channel 8 0 COMRAM 1
-__size_of_putch 0 0 ABS 0
-_RCSTAbits FAB 0 ABS 0
-_TXSTAbits FAC 0 ABS 0
-_midi_set_channel 7EAE 0 CODE 0
-__size_of_eusart_write_midi 0 0 ABS 0
-__Hibigdata 0 0 CODE 0
-__Libigdata 0 0 CODE 0
-__Hifardata 0 0 CODE 0
-__Lifardata 0 0 CODE 0
-__Hbank0 0 0 ABS 0
-__Lbank0 0 0 ABS 0
-__Hbank1 0 0 ABS 0
-__Lbank1 0 0 ABS 0
-__Hbank2 0 0 ABS 0
-__Lbank2 0 0 ABS 0
-__Hbank3 0 0 ABS 0
-__Lbank3 0 0 ABS 0
-__Hbank4 0 0 ABS 0
-__Lbank4 0 0 ABS 0
-__Hbank5 0 0 ABS 0
-__Lbank5 0 0 ABS 0
-__Hpowerup 0 0 CODE 0
-__Lpowerup 0 0 CODE 0
-__Htext0 0 0 ABS 0
-__Ltext0 0 0 ABS 0
-_eusart_write_midi 7F78 0 CODE 0
-__Htext1 0 0 ABS 0
-__Ltext1 0 0 ABS 0
-__ptext0 7ED4 0 CODE 0
-__Htext2 0 0 ABS 0
-__Ltext2 0 0 ABS 0
-__ptext1 7F02 0 CODE 0
-__end_of_midi_note_on 7F78 0 CODE 0
-__Htext3 0 0 ABS 0
-__Ltext3 0 0 ABS 0
-__ptext2 7E8A 0 CODE 0
-__Htext4 0 0 ABS 0
-__Ltext4 0 0 ABS 0
-__ptext3 7EAE 0 CODE 0
-__Htext5 0 0 ABS 0
-__CFG_P2BMX$PORTD2 0 0 ABS 0
-__Ltext5 0 0 ABS 0
-__ptext4 7F78 0 CODE 0
-__Htext6 0 0 ABS 0
-__Ltext6 0 0 ABS 0
-__ptext5 7E66 0 CODE 0
-__ptext6 7E72 0 CODE 0
-__CFG_T3CMX$PORTC0 0 0 ABS 0
-__Hclrtext 0 0 ABS 0
-__Lclrtext 0 0 ABS 0
-__CFG_HFOFST$ON 0 0 ABS 0
-__end_of__initialization 7E60 0 CODE 0
-__CFG_PRICLKEN$ON 0 0 ABS 0
-_BAUDCONbits FB8 0 ABS 0
-___rparam_used 1 0 ABS 0
-__Hidata 0 0 CODE 0
-__Lidata 0 0 CODE 0
-__Hrdata 0 0 COMRAM 1
-__Lrdata 0 0 COMRAM 1
-_eusart_init 7E72 0 CODE 0
-__Hidloc 200008 0 IDLOC 0
-__Lidloc 200000 0 IDLOC 0
-__CFG_PWRTEN$OFF 0 0 ABS 0
-__Hstack 0 0 STACK 2
-__Lstack 0 0 STACK 2
-_midi_note_on 7F02 0 CODE 0
-midi_set_channel@channel 3 0 COMRAM 1
-__Hparam 0 0 COMRAM 1
-__Lparam 0 0 COMRAM 1
-__Hspace_0 30000E 0 ABS 0
-__HcstackCOMRAM 0 0 ABS 0
-__Lspace_0 0 0 ABS 0
-__LcstackCOMRAM 0 0 ABS 0
-__pcstackCOMRAM 1 0 COMRAM 1
-__Hspace_1 15 0 ABS 0
-__Lspace_1 0 0 ABS 0
-__Hsmallconst 0 0 SMALLCONST 0
-__Lsmallconst 0 0 SMALLCONST 0
-eusart_write_midi@length 6 0 COMRAM 1
-__Hspace_2 0 0 ABS 0
-__Lspace_2 0 0 ABS 0
-__Hnvbit 0 0 COMRAM 1
-__Lnvbit 0 0 COMRAM 1
-__Hcinit 0 0 ABS 0
-__Lcinit 0 0 ABS 0
-__pcinit 7E60 0 CODE 0
-__CFG_EBTRB$OFF 0 0 ABS 0
-__ramtop 600 0 RAM 0
-__mediumconst 0 0 MEDIUMCONST 0
-__size_of_main 0 0 ABS 0
-__Hconst 0 0 CONST 0
-__Lconst 0 0 CONST 0
-__CFG_WRT0$OFF 0 0 ABS 0
-__CFG_WRT1$OFF 0 0 ABS 0
-midi_note_on@pkt 6 0 COMRAM 1
-__CFG_MCLRE$EXTMCLR 0 0 ABS 0
-__CFG_FCMEN$OFF 0 0 ABS 0
-__size_of_midi_set_status 0 0 ABS 0
-midi_note_on@note A 0 COMRAM 1
-midi_set_status@pkt 1 0 COMRAM 1
-___inthi_sp 0 0 STACK 2
-__size_of_midi_set_channel 0 0 ABS 0
-___intlo_sp 0 0 STACK 2
-__CFG_CP0$OFF 0 0 ABS 0
-__smallconst 0 0 SMALLCONST 0
-__CFG_CP1$OFF 0 0 ABS 0
-__Hreset_vec 0 0 CODE 0
-__Lreset_vec 0 0 CODE 0
-__CFG_BORV$190 0 0 ABS 0
-__accesstop 60 0 ABS 0
-__end_of_midi_set_status 7EAE 0 CODE 0
-__Hintcode_body 0 0 ABS 0
-__Lintcode_body 0 0 ABS 0
-__CFG_PBADEN$ON 0 0 ABS 0
-intlevel0 0 0 CODE 0
-intlevel1 0 0 CODE 0
-__CFG_WRTB$OFF 0 0 ABS 0
-midi_set_status@status 3 0 COMRAM 1
-intlevel2 0 0 CODE 0
-intlevel3 0 0 CODE 0
-__CFG_WRTC$OFF 0 0 ABS 0
-__end_of_eusart_init 7E8A 0 CODE 0
-__CFG_WRTD$OFF 0 0 ABS 0
-__CFG_CPB$OFF 0 0 ABS 0
-__CFG_CPD$OFF 0 0 ABS 0
-start_initialization 7E60 0 CODE 0
-__CFG_BOREN$SBORDIS 0 0 ABS 0
-__CFG_IESO$OFF 0 0 ABS 0
-__initialization 7E60 0 CODE 0
-__activetblptr 0 0 ABS 0
-%segments
-reset_vec 0 3 CODE 0 0
-config 300000 30000D CONFIG 300000 0
-idloc 200000 200007 IDLOC 200000 0
-cstackCOMRAM 1 14 COMRAM 1 1
-text4 7F78 7FFF CODE 7F78 0
-text1 7F02 7F77 CODE 7F02 0
-text0 7ED4 7F01 CODE 7ED4 0
-text3 7EAE 7ED3 CODE 7EAE 0
-text2 7E8A 7EAD CODE 7E8A 0
-text6 7E72 7E89 CODE 7E72 0
-text5 7E66 7E71 CODE 7E66 0
-cinit 7E60 7E65 CODE 7E60 0
-%locals
-dist/default/production\src.production.obj
-C:\Program Files\Microchip\xc8\v1.44\include\pic18f45k22.h
-C:\Users\_prossn\AppData\Local\Temp\s4jk.
-1149 7E60 0 CODE 0
-1151 7E60 0 CODE 0
-1154 7E60 0 CODE 0
-1160 7E60 0 CODE 0
-1162 7E60 0 CODE 0
-1163 7E62 0 CODE 0
-main.c
-105 7ED4 0 CODE 0
-108 7ED4 0 CODE 0
-110 7EF0 0 CODE 0
-113 7EF4 0 CODE 0
-114 7EF4 0 CODE 0
-113 7F00 0 CODE 0
-midi.c
-64 7F02 0 CODE 0
-66 7F02 0 CODE 0
-70 7F0A 0 CODE 0
-74 7F1E 0 CODE 0
-75 7F2E 0 CODE 0
-77 7F42 0 CODE 0
-78 7F52 0 CODE 0
-81 7F62 0 CODE 0
-midi.c
-42 7E8A 0 CODE 0
-44 7E8A 0 CODE 0
-48 7E92 0 CODE 0
-midi.c
-53 7EAE 0 CODE 0
-55 7EAE 0 CODE 0
-59 7EB6 0 CODE 0
-main.c
-81 7F78 0 CODE 0
-83 7F78 0 CODE 0
-87 7F80 0 CODE 0
-91 7F94 0 CODE 0
-92 7FA8 0 CODE 0
-94 7FB4 0 CODE 0
-96 7FDA 0 CODE 0
-97 7FDC 0 CODE 0
-98 7FEE 0 CODE 0
-96 7FEE 0 CODE 0
-rs232.c
-23 7E66 0 CODE 0
-25 7E68 0 CODE 0
-26 7E6C 0 CODE 0
-27 7E70 0 CODE 0
-rs232.c
-4 7E72 0 CODE 0
-7 7E72 0 CODE 0
-8 7E74 0 CODE 0
-11 7E76 0 CODE 0
-12 7E78 0 CODE 0
-13 7E7C 0 CODE 0
-14 7E7E 0 CODE 0
-17 7E80 0 CODE 0
-18 7E82 0 CODE 0
-19 7E84 0 CODE 0
-20 7E86 0 CODE 0
-21 7E88 0 CODE 0
diff --git a/src/main.c b/src/main.c
index c01cb90..4a880a0 100644
--- a/src/main.c
+++ b/src/main.c
@@ -14,8 +14,8 @@
// 'C' source line config statements
// CONFIG1H
-#pragma config FOSC = ECHPIO6 // Oscillator Selection bits (EC oscillator (high power, >16 MHz))
-#pragma config PLLCFG = OFF // 4X PLL Enable (Oscillator used directly)
+#pragma config FOSC = INTIO7 // Oscillator Selection bits (Internal oscillator block)
+#pragma config PLLCFG = ON // 4X PLL Enable (Oscillator multiplied by 4)
#pragma config PRICLKEN = ON // Primary clock enable bit (Primary clock is always enabled)
#pragma config FCMEN = OFF // Fail-Safe Clock Monitor Enable bit (Fail-Safe Clock Monitor disabled)
#pragma config IESO = OFF // Internal/External Oscillator Switchover bit (Oscillator Switchover mode disabled)
@@ -46,6 +46,8 @@
// CONFIG5L
#pragma config CP0 = OFF // Code Protection Block 0 (Block 0 (000800-001FFFh) not code-protected)
#pragma config CP1 = OFF // Code Protection Block 1 (Block 1 (002000-003FFFh) not code-protected)
+#pragma config CP2 = OFF // Code Protection Block 2 (Block 2 (004000-005FFFh) not code-protected)
+#pragma config CP3 = OFF // Code Protection Block 3 (Block 3 (006000-007FFFh) not code-protected)
// CONFIG5H
#pragma config CPB = OFF // Boot Block Code Protection bit (Boot block (000000-0007FFh) not code-protected)
@@ -54,6 +56,8 @@
// CONFIG6L
#pragma config WRT0 = OFF // Write Protection Block 0 (Block 0 (000800-001FFFh) not write-protected)
#pragma config WRT1 = OFF // Write Protection Block 1 (Block 1 (002000-003FFFh) not write-protected)
+#pragma config WRT2 = OFF // Write Protection Block 2 (Block 2 (004000-005FFFh) not write-protected)
+#pragma config WRT3 = OFF // Write Protection Block 3 (Block 3 (006000-007FFFh) not write-protected)
// CONFIG6H
#pragma config WRTC = OFF // Configuration Register Write Protection bit (Configuration registers (300000-3000FFh) not write-protected)
@@ -63,6 +67,8 @@
// CONFIG7L
#pragma config EBTR0 = OFF // Table Read Protection Block 0 (Block 0 (000800-001FFFh) not protected from table reads executed in other blocks)
#pragma config EBTR1 = OFF // Table Read Protection Block 1 (Block 1 (002000-003FFFh) not protected from table reads executed in other blocks)
+#pragma config EBTR2 = OFF // Table Read Protection Block 2 (Block 2 (004000-005FFFh) not protected from table reads executed in other blocks)
+#pragma config EBTR3 = OFF // Table Read Protection Block 3 (Block 3 (006000-007FFFh) not protected from table reads executed in other blocks)
// CONFIG7H
#pragma config EBTRB = OFF // Boot Block Table Read Protection bit (Boot Block (000000-0007FFh) not protected from table reads executed in other blocks)
@@ -70,6 +76,8 @@
// #pragma config statements should precede project file includes.
// Use project enums instead of #define for ON and OFF.
+#define _XTAL_FREQ 64000000
+
#include "rs232.h"
#include "midi.h"
@@ -87,12 +95,8 @@ int eusart_write_midi(const midi_message_t *pkt)
return -1;
}
- if (pkt->data == NULL) {
- return -2;
- }
-
length = pkt->data_size;
- data = pkt->data;
+ data = (uint8_t *) pkt->data;
putch((char)((pkt->status << 4) | pkt->channel));
@@ -105,13 +109,37 @@ int eusart_write_midi(const midi_message_t *pkt)
/* main program */
-void main(void) {
-
+void main(void)
+{
midi_message_t sample_message;
- midi_note_on(&sample_message, 0x0, 0x3C, 0x7F);
- eusart_init();
+ /* PLL / FOSC configuration */
+ // enable PLL
+ OSCTUNEbits.PLLEN = 1;
+ // set FOSC to HFINTOSC (max frequency)
+ OSCTUNEbits.TUN = 0b011111;
+ // set 16 MHz oscillator, datasheet p.30
+ OSCCONbits.IRCF = 0b111;
+ // select primary clock (with PLL)
+ OSCCONbits.SCS = 0b00;
+
+ /* i/o initializazion */
+ // disable all ADCs
+ ANSELA = 0x00;
+ ANSELB = 0x00;
+ ANSELC = 0x00;
+ ANSELD = 0x00;
+
+
+ /* serial configuration */
+ eusart1_init();
+ /* demo code */
+ midi_note_on(&sample_message, 0x0, 0x3C, 0x7F);
+
+ TRISDbits.TRISD1 = 0;
+ PORTDbits.RD1 = 0;
+
/* main loop */
while (1) {
eusart_write_midi(&sample_message);
diff --git a/src/midi.h b/src/midi.h
index fb85833..95976d7 100644
--- a/src/midi.h
+++ b/src/midi.h
@@ -53,6 +53,7 @@ typedef struct {
#endif
} midi_message_t;
+extern unsigned midi_base_scale = 0x3C;
/* MIDI API */
#ifdef MIDI_DYNAMIC_MEMORY_ALLOC
diff --git a/src/nbproject/Makefile-genesis.properties b/src/nbproject/Makefile-genesis.properties
new file mode 100644
index 0000000..8bab016
--- /dev/null
+++ b/src/nbproject/Makefile-genesis.properties
@@ -0,0 +1,9 @@
+#
+#Fri Feb 23 08:35:30 CET 2018
+default.languagetoolchain.dir=C\:\\Program Files\\Microchip\\xc8\\v1.44\\bin
+configurations-xml=af2f7bf849f43cec780e74f66603aaa1
+com-microchip-mplab-nbide-embedded-makeproject-MakeProject.md5=5d30ff5128b14865c8a3796a8f0bb8a0
+default.languagetoolchain.version=1.44
+host.platform=windows
+conf.ids=default
+default.com-microchip-mplab-nbide-toolchainXC8-XC8LanguageToolchain.md5=1ecde863556371fa9144cadd16f678d4
diff --git a/src/nbproject/Makefile-variables.mk b/src/nbproject/Makefile-variables.mk
new file mode 100644
index 0000000..095430d
--- /dev/null
+++ b/src/nbproject/Makefile-variables.mk
@@ -0,0 +1,13 @@
+#
+# Generated - do not edit!
+#
+# NOCDDL
+#
+CND_BASEDIR=`pwd`
+# default configuration
+CND_ARTIFACT_DIR_default=dist/default/production
+CND_ARTIFACT_NAME_default=src.production.hex
+CND_ARTIFACT_PATH_default=dist/default/production/src.production.hex
+CND_PACKAGE_DIR_default=${CND_DISTDIR}/default/package
+CND_PACKAGE_NAME_default=src.tar
+CND_PACKAGE_PATH_default=${CND_DISTDIR}/default/package/src.tar
diff --git a/src/nbproject/private/configurations.xml b/src/nbproject/private/configurations.xml
index 58a3971..04c6d7b 100644
--- a/src/nbproject/private/configurations.xml
+++ b/src/nbproject/private/configurations.xml
@@ -4,7 +4,7 @@
<defaultConf>0</defaultConf>
<confs>
<conf name="default" type="2">
- <platformToolSN>:=MPLABComm-USB-Microchip:=&lt;vid>04D8:=&lt;pid>9009:=&lt;rev>0100:=&lt;man>Microchip Technology, Inc. (www.microchip.com):=&lt;prod>MPLAB ICD3 tm (www.microchip.com):=&lt;sn>JIT153520759:=&lt;drv>x:=&lt;xpt>b:=end</platformToolSN>
+ <platformToolSN>:=MPLABComm-USB-Microchip:=&lt;vid>04D8:=&lt;pid>9009:=&lt;rev>0100:=&lt;man>Microchip Technology, Inc. (www.microchip.com):=&lt;prod>MPLAB ICD3 tm (www.microchip.com):=&lt;sn>JIT154810273:=&lt;drv>x:=&lt;xpt>b:=end</platformToolSN>
<languageToolchainDir>C:\Program Files\Microchip\xc8\v1.44\bin</languageToolchainDir>
<mdbdebugger version="1">
<placeholder1>place holder 1</placeholder1>
diff --git a/src/nbproject/private/private.xml b/src/nbproject/private/private.xml
index ad4dc09..eac6246 100644
--- a/src/nbproject/private/private.xml
+++ b/src/nbproject/private/private.xml
@@ -4,6 +4,7 @@
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
<group name="Corso Kamm">
<file>file:/Z:/SAMB_4/projects/xilofono/src/main.c</file>
+ <file>file:/Z:/SAMB_4/projects/xilofono/src/rs232.h</file>
<file>file:/Z:/SAMB_4/projects/xilofono/src/midi.h</file>
<file>file:/Z:/SAMB_4/projects/xilofono/src/midi.c</file>
<file>file:/Z:/SAMB_4/projects/xilofono/src/rs232.c</file>
diff --git a/src/rs232.c b/src/rs232.c
index e87e49b..e060759 100644
--- a/src/rs232.c
+++ b/src/rs232.c
@@ -1,35 +1,41 @@
#include "rs232.h"
#include <xc.h>
-void eusart_init(void)
+void eusart1_init(void)
{
// set Async and 8 bits frame
- TXSTAbits.SYNC = 0;
- TXSTAbits.TX9 = 0;
+ TXSTA1bits.SYNC = 0;
+ TXSTA1bits.TX9 = 0;
- // 9600 baud prescaler
- RCSTAbits.SPEN = 1;
- SPBRG = 129;
- TXSTAbits.BRGH = 1;
- BAUDCONbits.BRG16 = 0;
+ // baud prescaler
+ RCSTA1bits.SPEN = 1;
+ SPBRG1 = 31;
+ SPBRGH1 = 0;
+ TXSTA1bits.BRGH = 0;
+ BAUDCON1bits.BRG16 = 0;
// set up TX / RX pins
- TRISC7 = 1;
- TRISC6 = 1;
- RCSTAbits.CREN = 1; // enable continuous reception
- TXSTAbits.TXEN = 1;
+ TRISCbits.TRISC7 = 1;
+ TRISCbits.TRISC6 = 1;
+ RCSTA1bits.CREN = 1; // enable continuous reception
+ TXSTA1bits.TXEN = 1;
+}
+
+void eusart2_init(void)
+{
+ // TODO
}
void putch(char c)
{
- while (!TXIF);
- TXREG = c;
+ while (!TX1IF);
+ TX1REG = c;
}
char getch(void)
{
- while (!RCIF);
- return RCREG;
+ while (!RC1IF);
+ return RC1REG;
}
char getche(void)
diff --git a/src/rs232.h b/src/rs232.h
index 06866ba..cb59df0 100644
--- a/src/rs232.h
+++ b/src/rs232.h
@@ -8,18 +8,13 @@
#ifndef RS232_H
#define RS232_H
-#ifdef __cplusplus
-extern "C" {
-#endif
-extern void eusart_init(void);
+extern void eusart1_init(void);
+extern void eusart2_init(void);
+
extern void putch(char c);
extern char getch(void);
extern char getche(void);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* RS232_H */