Soooooo, I want to store my games data in an appvar in archive. So far I got the app to create the appvar in ram. On archiving it somehow freezes my calc, after resetting it the appvar is in archive.
Anyways, here's my code:
Code:
And yes I am using interrupts, the table reaching from $800 until $8100 (including), but also when completley removing interrupts it still froze on archive.
Anyways, here's my code:
Code:
; load appvar
ld hl,AppVarName
bcall(_Mov9toOp1)
bcall(_ChkFindSym)
jr c,_Run_No_AppVar
ld a,b
or a
jr nz,_Run_AppVar_in_Flash
di
ld hl,AppVarName
bcall(_Mov9toOp1)
bcall(_Arc_Unarc)
ei
;bcall(_ChkFindSym)
ld a,b
_Run_AppVar_in_Flash:
ex de,hl
ld bc,23
ld de,reuben
;bcall(_FlashToRAM)
jr {+1@}
_Run_No_AppVar:
ld hl,AppVarName ; create the appvar
rst rMov9ToOP1
ld hl,23
bcall(_CreateAppVar)
inc de ; header
inc de
ld hl,ReubenDefaultData
ld bc,23
ldir
@:
And yes I am using interrupts, the table reaching from $800 until $8100 (including), but also when completley removing interrupts it still froze on archive.