.de st_time, 1
; state routine (BE)
; it can return 0000 in hl
- ; or a new state address in hl (LE)
+ ; or a new state address in hl (BE)
; if bc is not 0000 after
; the calling state's address
; will be set to bc immediatly
+ ; inputs for all state routines:
+ ; de: state pointer
.de st_routine, 2
; next state (BE)
.de st_next, 2
pop de
ret
@update:
-
+ ; de = actor ptr
+ pop de
+ push de
call call_hl
pop hl ; hl = original actor ptr = dst
st_cursor_delay:
st_def CURSOR_MOVE_TIMER, st_null_fn, st_cursor
+st_ui_building_selector:
+ st_def 0, ui_building_selector_update, st_ui_building_selector
+
st_update_game:
st_def 0x00, update_game, st_update_game
ld [hl], a
ret
+
+ ; ui building selector state
+ui_building_selector_update:
+
+ ldnull bc
+ ret