Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pret
GitHub Repository: pret/pokered
Path: blob/master/macros/ram.asm
1270 views
1
; Used in wram.asm
2
3
MACRO flag_array
4
ds ((\1) + 7) / 8
5
ENDM
6
7
DEF BOX_STRUCT_LENGTH EQU 25 + NUM_MOVES * 2
8
9
MACRO box_struct
10
\1Species:: db
11
\1HP:: dw
12
\1BoxLevel:: db
13
\1Status:: db
14
\1Type::
15
\1Type1:: db
16
\1Type2:: db
17
\1CatchRate:: db
18
\1Moves:: ds NUM_MOVES
19
\1OTID:: dw
20
\1Exp:: ds 3
21
\1HPExp:: dw
22
\1AttackExp:: dw
23
\1DefenseExp:: dw
24
\1SpeedExp:: dw
25
\1SpecialExp:: dw
26
\1DVs:: dw
27
\1PP:: ds NUM_MOVES
28
ENDM
29
30
MACRO party_struct
31
box_struct \1
32
\1Level:: db
33
\1Stats::
34
\1MaxHP:: dw
35
\1Attack:: dw
36
\1Defense:: dw
37
\1Speed:: dw
38
\1Special:: dw
39
ENDM
40
41
MACRO battle_struct
42
\1Species:: db
43
\1HP:: dw
44
\1PartyPos::
45
\1BoxLevel:: db
46
\1Status:: db
47
\1Type::
48
\1Type1:: db
49
\1Type2:: db
50
\1CatchRate:: db
51
\1Moves:: ds NUM_MOVES
52
\1DVs:: dw
53
\1Level:: db
54
\1Stats::
55
\1MaxHP:: dw
56
\1Attack:: dw
57
\1Defense:: dw
58
\1Speed:: dw
59
\1Special:: dw
60
\1PP:: ds NUM_MOVES
61
ENDM
62
63
MACRO spritestatedata1
64
\1PictureID:: db
65
\1MovementStatus:: db
66
\1ImageIndex:: db
67
\1YStepVector:: db
68
\1YPixels:: db
69
\1XStepVector:: db
70
\1XPixels:: db
71
\1IntraAnimFrameCounter:: db
72
\1AnimFrameCounter:: db
73
\1FacingDirection:: db
74
\1YAdjusted:: db
75
\1XAdjusted:: db
76
\1CollisionData:: db
77
ds 3
78
\1End::
79
ENDM
80
81
MACRO spritestatedata2
82
\1WalkAnimationCounter:: db
83
ds 1
84
\1YDisplacement:: db
85
\1XDisplacement:: db
86
\1MapY:: db
87
\1MapX:: db
88
\1MovementByte1:: db
89
\1GrassPriority:: db
90
\1MovementDelay:: db
91
\1OrigFacingDirection:: db
92
ds 3
93
\1PictureID:: db
94
\1ImageBaseOffset:: db
95
ds 1
96
\1End::
97
ENDM
98
99
MACRO sprite_oam_struct
100
\1YCoord:: db
101
\1XCoord:: db
102
\1TileID:: db
103
\1Attributes:: db
104
ENDM
105
106
MACRO map_connection_struct
107
\1ConnectedMap:: db
108
\1ConnectionStripSrc:: dw
109
\1ConnectionStripDest:: dw
110
\1ConnectionStripLength:: db
111
\1ConnectedMapWidth:: db
112
\1ConnectedMapYAlignment:: db
113
\1ConnectedMapXAlignment:: db
114
\1ConnectedMapViewPointer:: dw
115
ENDM
116
117