2020-03-20 19:10:53 +00:00
|
|
|
; init state
|
|
|
|
|
|
|
|
; in future we might load from disk
|
|
|
|
|
|
|
|
init_state:
|
|
|
|
lda #0
|
|
|
|
|
2020-03-23 20:11:14 +00:00
|
|
|
; book pages
|
|
|
|
sta RED_PAGES_TAKEN
|
|
|
|
sta BLUE_PAGES_TAKEN
|
|
|
|
sta HOLDING_PAGE
|
2020-03-23 20:14:11 +00:00
|
|
|
sta RED_PAGE_COUNT
|
|
|
|
sta BLUE_PAGE_COUNT
|
2020-03-23 20:11:14 +00:00
|
|
|
|
2020-03-20 19:10:53 +00:00
|
|
|
; init clock puzzles
|
|
|
|
sta CLOCK_MINUTE
|
|
|
|
sta CLOCK_HOUR
|
|
|
|
sta CLOCK_TOP
|
|
|
|
sta CLOCK_MIDDLE
|
|
|
|
sta CLOCK_BOTTOM
|
|
|
|
sta CLOCK_COUNT
|
|
|
|
sta CLOCK_LAST
|
|
|
|
|
|
|
|
; init gear
|
|
|
|
sta GEAR_OPEN
|
|
|
|
|
|
|
|
; init generator
|
|
|
|
sta BREAKER_TRIPPED
|
|
|
|
sta GENERATOR_VOLTS
|
|
|
|
sta ROCKET_VOLTS
|
|
|
|
sta GENERATOR_VOLTS_DISP
|
|
|
|
sta ROCKET_VOLTS_DISP
|
|
|
|
sta SWITCH_TOP_ROW
|
|
|
|
sta SWITCH_BOTTOM_ROW
|
|
|
|
sta ROCKET_HANDLE_STEP
|
|
|
|
|
|
|
|
; init rocket sliders
|
|
|
|
sta ROCKET_NOTE1
|
|
|
|
sta ROCKET_NOTE2
|
|
|
|
sta ROCKET_NOTE3
|
|
|
|
sta ROCKET_NOTE4
|
|
|
|
|
2020-03-21 19:13:36 +00:00
|
|
|
; meche elevator
|
|
|
|
sta MECHE_ELEVATOR
|
|
|
|
sta MECHE_ROTATION
|
2020-03-22 20:14:49 +00:00
|
|
|
sta MECHE_LOCK1
|
|
|
|
sta MECHE_LOCK2
|
|
|
|
sta MECHE_LOCK3
|
|
|
|
sta MECHE_LOCK4
|
2020-03-21 19:13:36 +00:00
|
|
|
|
2020-03-27 19:43:24 +00:00
|
|
|
sta VIEWER_CHANNEL
|
|
|
|
sta VIEWER_LATCHED
|
|
|
|
|
2020-04-07 20:31:00 +00:00
|
|
|
sta TOWER_ROTATION
|
|
|
|
|
2020-04-08 05:22:19 +00:00
|
|
|
sta SHIP_RAISED
|
|
|
|
|
2020-04-21 23:08:31 +00:00
|
|
|
sta PUMP_STATE
|
|
|
|
sta BATTERY_CHARGE
|
|
|
|
sta COMPASS_ANGLE
|
|
|
|
sta CRANK_ANGLE
|
|
|
|
|
2020-04-07 20:31:00 +00:00
|
|
|
lda #$ff ; for debugging
|
|
|
|
sta MARKER_SWITCHES
|
|
|
|
|
2020-03-20 19:10:53 +00:00
|
|
|
rts
|