Added access of DATA section for LDI and SVI.

This commit is contained in:
Russell-S-Harper
2019-07-07 13:25:47 -04:00
parent 5b78dcbd82
commit 2bbd304ec7
7 changed files with 57 additions and 33 deletions
+6 -6
View File
@@ -1,17 +1,17 @@
XAPP=../xa-pre-process/xapp
system.obj: common.obj page6.obj
cat common.obj page6.obj > system.obj
system.obj: common.obj appl.obj
cat common.obj appl.obj > system.obj
common.obj: rom.h common.h common.asm
xa -C -M common.asm -l common.lbl -o common.obj
page6.obj: rom.h macros.h globals.h page6.src
cpp -P page6.src | $(XAPP) > page6.asm
xa -C -M page6.asm -l page6.lbl -o page6.obj
appl.obj: rom.h macros.h globals.h appl.src
cpp -P appl.src | $(XAPP) > appl.asm
xa -C -M appl.asm -l appl.lbl -o appl.obj
globals.h: common.obj
grep -E '^(FN_XR|FN_0X|PLS_1|MNS_1|ADDR)' common.lbl | sed -e 's/, 0, 0x0000//' -e 's/, / = /' -e 's/ 0x/ \x24/' > globals.h
clean:
rm -f globals.h page6.asm common.obj page6.obj common.lbl page6.lbl system.obj
rm -f globals.h appl.asm common.obj appl.obj common.lbl appl.lbl system.obj