-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtaki-public.inc
97 lines (84 loc) · 2.13 KB
/
taki-public.inc
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
.ifndef TAKI_PUBLIC_INC_
TAKI_PUBLIC_INC_ = 1
.macro maybe_import name
.ifndef name
.import name
.endif
.endmacro
.macro TF_ST_BRANCH_IF_FLG flag, dest
lda #flag
bit TakiVarStatusFlags
bne dest
.endmacro
.macro TF_ST_BRANCH_UNLESS_FLG flag, dest
lda #flag
bit TakiVarStatusFlags
beq dest
.endmacro
.macro TF_BEH_BRANCH_IF_FLG flag, dest
lda #flag
bit TakiVarBehaviorFlags
bne dest
.endmacro
.macro TF_BEH_BRANCH_UNLESS_FLG flag, dest
lda #flag
bit TakiVarBehaviorFlags
beq dest
.endmacro
.macro TF_BEH_BRANCH_SET_FLG flag
lda #flag
ora TakiVarBehaviorFlags
sta TakiVarBehaviorFlags
.endmacro
.macro TF_BEH_BRANCH_UNSET_FLG flag
lda TakiVarBehaviorFlags
and #~{flag}
sta TakiVarBehaviorFlags
.endmacro
TF_ST_ANIMATION_ACTIVE = 1
TF_ST_DEBUG_ACTIVE = 2
TF_ST_IN_INPUT = 4
TF_BEH_DETECT_HOME = 1
maybe_import TakiStart
maybe_import TakiVarReleaseVersion
maybe_import TakiVarInitStatus
maybe_import TakiVarEffectsAllocNumPages
maybe_import TakiVarMaxActiveEffects
maybe_import TakiVarDefaultCountdown
maybe_import TakiVarEffectsAllocStartPage
maybe_import TakiVarEffectsAllocEndPage
maybe_import TakiVarCommandBufferPage
maybe_import TakiVarExitPrompts
maybe_import TakiVarStatusFlags
maybe_import TakiVarBehaviorFlags
maybe_import TakiVarIndirectFn
maybe_import TakiVarTickNum
maybe_import TakiVarDispatchEvent
maybe_import TakiVarRandomWord
maybe_import TakiDbgPrint
.ifndef TAKI_INTERNAL
maybe_import TakiInit
maybe_import TakiExit
maybe_import TakiReset
maybe_import TakiDbgInit
maybe_import TakiDbgExit
maybe_import TakiDbgCOUT
maybe_import TakiDbgUndrawBadge
maybe_import TakiDbgDrawBadge
maybe_import TakiDbgPrintCmdBufWordAtY
maybe_import TakiIn
maybe_import TakiOut
maybe_import TakiDelay
maybe_import TakiIoScreenOut
maybe_import TakiIoFastOut
maybe_import TakiIoFastPrintStr
maybe_import TakiIoFastPrintSpace
maybe_import TakiIoNextRandom
maybe_import TakiIoRandWithinAY
maybe_import TakiMySetCounter
maybe_import TakiMyGetCounter
maybe_import TakiMySetCounterInit
maybe_import TakiMyGetCounterInit
.endif
.delmacro maybe_import
.endif ; TAKI_PUBLIC_INC_