-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathglobal.i
94 lines (70 loc) · 1.37 KB
/
global.i
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
.include "libSFX.i"
.feature force_range
.macpack longbranch
; from main.s
.globalzp VBLPart, VBLTask, VBLTaskDelay, VBLTaskNext
.globalzp PartStatus
.global VBL_Dummy, VBLTask_Wait
.global ClearMainSprites
.global OAM_low, OAM_high
.global SinTable
.macro VBL_part addr
RW_push set:a8i16
ldx #addr
lda #^addr
stx z:VBLPart
sta z:VBLPart+2
RW_pull
.endmac
.macro VBL_part_stop
RW_push set:a8i16
ldx #VBL_Dummy
lda #^VBL_Dummy
stx z:VBLPart
sta z:VBLPart+2
RW_pull
.endmac
.macro VBL_task addr, wait
RW_push set:a8i16
ldx #addr
lda #^addr
stx z:VBLTaskNext
sta z:VBLTaskNext+2
ldx #VBLTask_Wait
lda #^VBLTask_Wait
stx z:VBLTask
sta z:VBLTask+2
.ifnblank wait
ldx #wait
.else
ldx #0
.endif
stx z:VBLTaskDelay
RW_pull
.endmac
.macro VBL_task_stop
RW_push set:a8i16
ldx #VBL_Dummy
lda #^VBL_Dummy
stx z:VBLTask
sta z:VBLTask+2
RW_pull
.endmac
; from twist.s
.global TwistPartMain
; from vector.s
.global VectorPartMain
.global UpdateScrollText
; from vectorplot.s
.globalzp DrawFlags
.globalzp PaletteColors, WindowColors
.globalzp CurrObj
.globalzp VectorX, VectorY
; TODO: delete these ones
.globalzp AngleX, AngleY, AngleZ, DeltaFrames, PolyCount, LineList
.global GlenzLineList
.globalzp DeltaX, DeltaY, DeltaZ
.globalzp BufferReady
.global VectorPartInit, VectorPartVBL
.global ObjectTable
.global LoadObject, UpdateVertex, UpdateBuffer