simplify build and wrapper code

This commit is contained in:
4am 2021-06-18 21:13:59 -04:00
parent f7de3777ee
commit 431499d41a
4 changed files with 24 additions and 27 deletions

View File

@ -44,6 +44,8 @@ asm:
grep "PREFSFILE=" build/vars.log | cut -d":" -f3 | cut -d"(" -f1 >> build/vars.a
grep "SLOT=" build/vars.log | cut -d":" -f3 | cut -d"(" -f1 >> build/vars.a
grep "DRIVE=" build/vars.log | cut -d":" -f3 | cut -d"(" -f1 >> build/vars.a
grep "MainMenu=" build/vars.log | cut -d":" -f3 | cut -d"(" -f1 >> build/vars.a
grep "CheckCache=" build/vars.log | cut -d":" -f3 | cut -d"(" -f1 >> build/vars.a
$(EXOMIZER) -b build/passport.tmp -o build/passport.pak
cd src && $(ACME) -DFORWARD_DECRUNCHING=0 wrapper.a
cp res/work.po "$(BUILDDISK)".po

View File

@ -41,8 +41,6 @@ VERBOSE = $00 ; set to $01 to display API label addresses
!ct "lcase.ct"
Relocatable
jmp MainMenu
!bin "../build/t00only.pak"
NonRelocatable
@ -100,25 +98,13 @@ NonRelocatable
!source "cffa.a"
!source "progress.a"
!source "rwts.a"
!source "wholetrack.a"
!source "standarddelivery.a"
!source "wholetrack.a"
!source "adstyle.a"
!source "universalstyle.a"
!source "crackme.a"
MainMenu
ldx #$FF
txs
lda #<MainMenu ; set reset vector
sta $03F2
lda #>MainMenu
sta $03F3
eor #$A5
sta $03F4
lda #<CheckCache ; set up output hook used to store log messages before they scroll off
sta $36
lda #>CheckCache
sta $37
jsr Cleanup ; RAM/HD files might be left open after Ctrl-Reset
jsr ClearScreen
jsr MoveT00PakLow
@ -519,4 +505,6 @@ _byte_skip_hi:
!warn "PREFSFILE=",PREFSFILE
!warn "SLOT=",SLOT
!warn "DRIVE=",DRIVE
!warn "MainMenu=",MainMenu
!warn "CheckCache=",CheckCache
}

View File

@ -52,25 +52,30 @@ OneTimeSetup
jsr ScanForRAMAndHardDisks; scan for things that look like RAM disks or hard disks
+LoadPrefs ; load preferences (if available)
jsr ThisSlot ; get information about selected drive and set gTargetType for main menu
lda $FE
sta $F0
lda $FF
sta $F1
lda #$FD
sta $F2
lda #$31
sta $F3
ldx #$0D
ldy #$32
sty $F1
ldy #$00
- lda ($F0), y
sta ($F2), y
sty $F0
- lda ($FE), y
sta ($F0), y
iny
bne -
inc $FF
inc $F1
inc $F3
dex
bne -
jmp ($FE)
lda #<MainMenu ; set reset vector
sta $03F2
lda #>MainMenu
sta $03F3
eor #$A5
sta $03F4
lda #<CheckCache ; set up output hook used to store log messages before they scroll off
sta $36
lda #>CheckCache
sta $37
jmp MainMenu
!source "initscan.a"

View File

@ -37,6 +37,8 @@ for /f "tokens=4,* delims=:(" %%q in ('find "PREFSVER=" ..\build\out.txt') do ec
for /f "tokens=4,* delims=:(" %%q in ('find "PREFSFILE=" ..\build\out.txt') do echo %%q >> ..\build\vars.a
for /f "tokens=4,* delims=:(" %%q in ('find "SLOT=" ..\build\out.txt') do echo %%q >> ..\build\vars.a
for /f "tokens=4,* delims=:(" %%q in ('find "DRIVE=" ..\build\out.txt') do echo %%q >> ..\build\vars.a
for /f "tokens=4,* delims=:(" %%q in ('find "MainMenu=" ..\build\out.txt') do echo %%q >> ..\build\vars.a
for /f "tokens=4,* delims=:(" %%q in ('find "CheckCache=" ..\build\out.txt') do echo %%q >> ..\build\vars.a
cd ..\build
%EXOMIZER% raw -q -P23 -T4 -b passport.tmp -o passport.pak
cd ..\src