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