mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-11-17 14:12:58 +00:00
b1238af49d
this will probably upset people
29 lines
316 B
ArmAsm
29 lines
316 B
ArmAsm
; init state
|
|
|
|
; initial state at start of game is for all vars to be 0
|
|
|
|
init_state:
|
|
|
|
; global game state
|
|
lda #0
|
|
sta JOYSTICK_ENABLED
|
|
|
|
; game state in saves init
|
|
|
|
lda #$0
|
|
ldy #WHICH_LOAD
|
|
init_state_loop:
|
|
sta 0,Y
|
|
iny
|
|
cpy #END_OF_SAVE
|
|
bne init_state_loop
|
|
|
|
|
|
; testing
|
|
|
|
; lda #$ff
|
|
; sta MARKER_SWITCHES
|
|
|
|
rts
|
|
|