-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGameFlow.asm
More file actions
37 lines (29 loc) · 948 Bytes
/
GameFlow.asm
File metadata and controls
37 lines (29 loc) · 948 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
gfStatusJumpTableLo byte <GameFlow_StatusMain
byte <GameFlow_StatusHelp
byte <GameFlow_StatusSelected
gfStatusJumpTableHi byte >GameFlow_StatusMain
byte >GameFlow_StatusHelp
byte >GameFlow_StatusSelected
GameFlow_Update
ldx gameStatus
lda gfStatusJumpTableLo,x
sta zpLow
lda gfStatusJumpTableHi,x
sta zpHigh
jmp (zpLow)
GameFlow_StatusMain
jsr Screen_UpdateScreen
jsr Screen_FlashCursor
jsr Input_GetKeys
jsr Input_GetJoy
rts
GameFlow_StatusHelp
jsr Help_DisplayHelpScreen
lda #GF_STATUS_MAIN
sta gameStatus
rts
GameFlow_StatusSelected
jsr Screen_ItemSelected
lda #GF_STATUS_MAIN
sta gameStatus
rts