2020-03-20 19:10:53 +00:00
|
|
|
; init state
|
|
|
|
|
2020-07-03 16:23:18 +00:00
|
|
|
; initial state at start of game is for all vars to be 0
|
2020-03-20 19:10:53 +00:00
|
|
|
|
|
|
|
init_state:
|
2020-07-16 05:56:26 +00:00
|
|
|
|
|
|
|
; global game state
|
|
|
|
lda #0
|
|
|
|
sta JOYSTICK_ENABLED
|
|
|
|
|
|
|
|
; game state in saves init
|
|
|
|
|
2020-07-03 16:23:18 +00:00
|
|
|
lda #$0
|
|
|
|
ldy #WHICH_LOAD
|
|
|
|
init_state_loop:
|
|
|
|
sta 0,Y
|
|
|
|
iny
|
|
|
|
cpy #END_OF_SAVE
|
|
|
|
bne init_state_loop
|
2020-07-12 04:45:49 +00:00
|
|
|
|
|
|
|
|
2020-07-20 04:49:40 +00:00
|
|
|
; testing
|
2020-07-12 04:45:49 +00:00
|
|
|
|
2020-07-20 04:49:40 +00:00
|
|
|
; lda #$ff
|
|
|
|
; sta MARKER_SWITCHES
|
2020-07-12 04:45:49 +00:00
|
|
|
|
2020-07-03 16:23:18 +00:00
|
|
|
rts
|
2020-03-20 19:10:53 +00:00
|
|
|
|