HARSFEN0602
16.1 Main partitions....................................................................................................................................................... 204
16.2 The firmware partition.......................................................................................................................................... 204
16.2.1 Table of Contents (TOC)................................................................................................................................ 204
16.2.2 Contents of Text1........................................................................................................................................... 205
16.2.3 Contents of Text2........................................................................................................................................... 205
16.2.4 Contents of Text3........................................................................................................................................... 205
16.2.5 Contents of Text4-Text7.................................................................................................................................206
16.2.6 Contents of Text8........................................................................................................................................... 207
16.2.7 Contents of Text9........................................................................................................................................... 207
16.2.8 Contents of Text10......................................................................................................................................... 209
16.2.9 Contents of Binary1........................................................................................................................................209
16.2.10 Contents of Binary2........................................................................................................................................209
16.2.11 Contents of Binary3........................................................................................................................................209
16.3 Parameters Partition..............................................................................................................................................209
16.4 Factory Code Partition.......................................................................................................................................... 209
16.5 User Code partition................................................................................................................................................209
16.5.1 The TOC......................................................................................................................................................... 210
16.5.2 The Compilation Done Flag........................................................................................................................... 210
16.5.3 The Virtual Machine Code Segment.............................................................................................................. 211
16.5.4 The Text Backup & Compiler data segment.................................................................................................. 211
16.5.5 The Function Symbol Table........................................................................................................................... 211
16.5.6 The Variable Symbol Table............................................................................................................................212
16.5.7 The Automatic Routines Table....................................................................................................................... 212
17 APPENDIX B: HARMONICA INTERNALS .................................................................................................213
17.1 Software Structure................................................................................................................................................. 213
17.1.1 The Initialization block...................................................................................................................................213
17.1.2 The periodic Interrupt.....................................................................................................................................213
17.1.3 The Idle Loop................................................................................................................................................. 214
18 APPENDIX C: CONVERTING CLARINET/SAXOPHONE PROGRAMS TO THE HARMONICA
LANGUAGE.......................................................................................................................................................... 216
18.1 The Converter........................................................................................................................................................ 216
18.2 The Converter Call................................................................................................................................................ 216
18.3 The Algorithm........................................................................................................................................................ 216
18.4 The Conversion Process.........................................................................................................................................216
18.5 Examples................................................................................................................................................................. 217