a little more flexibility to integrate flasher into other projects

This commit is contained in:
Jakub Husak
2023-11-10 11:40:43 +01:00
parent 00688670e3
commit 886aa1b69b
18 changed files with 58 additions and 5 deletions
@@ -0,0 +1,24 @@
_SOURCE equ $6000
BankNum equ $88
MAIN_PROCESS_JMP equ $2003
opt h-
org 0
;dta a($ffff)
;------------
dta a(BankNum)
dta a(BankNum)
.print "#define BLK_BANKNUM 0x",*
dta 0
;------------
dta a(_SOURCE)
dta a(_SOURCE+$1fff)
.print "#define BLK_SOURCE 0x",*
:8192 dta 0
;------------
dta a($2e2)
dta a($2e3)
dta a(MAIN_PROCESS_JMP)
TEnd
;------------
@@ -0,0 +1,3 @@
.define TITLE dta c'Menu4Car generated'
.define CARTSIZE dta c' 1024'
.define BANKS 0
@@ -0,0 +1,2 @@
../makeflashwrite.sh . noprocess | grep "^#define" | sed "s/\\$//" >flashgenerator.h
mads bankpart.asx | grep "^#define" | sed "s/\\$//" >>flashgenerator.h