Replicating this arrangement of the binaries is achieved by
ChainFilesToRom.py in the
project s Makefile. It s a simple python script that extracts the relevant segments from each of the
binaries built in the
bin folder when you run
make redlabel.
Changes required for the source to compile
There were a few modifications to the source required along the way to get this to work.
Replacing macro arguments to make them compatible
asm6809,e.g.:
-NAPP MACRO \0,\1
- LDA #\0
- LDX #\1
+NAPP MACRO \1,\2
+ LDA #\1
+ LDX #\2 JMP SLEEPP ENDM
Replacing the use of
$ in label names, e.g.:
-INIT$V EQU HOFV+2