dos33fsprogs/games/mist_hgr/init_state.s

30 lines
336 B
ArmAsm
Raw Normal View History

2021-07-08 04:49:17 +00:00
; 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
2021-07-12 19:23:53 +00:00
sta UPDATE_POINTER
2021-07-08 04:49:17 +00:00
; 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