-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDefinitions.s
131 lines (102 loc) · 3.18 KB
/
Definitions.s
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
@.include "aw2.s" @ if I find one
.macro SET_FUNC name, value
.global \name
.type \name, function
.set \name, \value
.endm
.macro SET_DATA name, value
.global \name
.type \name, object
.set \name, \value
.endm
@ 28CF4
SET_FUNC MapMainIdle, 0x80345C8
@ see 0x8028CF4
SET_FUNC WinCh_P1, 0x8028AEC
SET_FUNC WinCh_P2, 0x8028568
SET_FUNC MakeRiver, 0x8009F11
SET_FUNC MakeMountain, 0x800b049
SET_FUNC MakeForest, 0x800CF29
SET_FUNC MakeForestSimple, 0x8007d71
SET_FUNC MakeRoad, 0x800f4e1
SET_FUNC MakeRoadSimple, 0x80080f9
SET_FUNC GetMostFittingTile, 0x8001705
SET_FUNC MakeProperty, 0x800C455 @ r0 x r1 y r2 as _City
SET_FUNC EnsureValidTile, 0x8008BB9 @ might delete surrounding tiles or something
SET_FUNC MakeProperty2, 0x8008A8D @ r0 as 0-4, r1 x r2 y
SET_FUNC MakeSeaSafest 0x8007CA1
SET_FUNC MakeSeaSafe, 0x8007c05 @ ???
SET_FUNC MakeSea, 0x8007BA5
@ 40c8
@ BA9C
@ MakeSeaSafest
@SET_FUNC MakeHQ, 0x800C455 same as MakeProperty
SET_FUNC MakeBridge, 0x8008F6D
SET_FUNC MakeShoal, 0x8007BA5 @ Called by MakeSeaSafe
SET_FUNC MakePipe, 0x8010D29
SET_FUNC MakeSeam, 0x8010D81
SET_FUNC GetSeamType, 0x8010605
SET_FUNC MakeReefSafe, 0x800BF79
SET_DATA mapTileData, 0x201EE72
SET_DATA terrainTileData, 0x201E450+0x1432
SET_DATA currentTileData, 0x201E450+0x417a
SET_DATA gPlaySt, 0x3003FC0
SET_DATA gActiveMap, 0x200B0B0
@[201f882]?
@ [201EEE4]! @ 6x 3y tile
@ [201F8C4]! @ 6x 3y terrain
SET_FUNC MakeTile, 0x80085E1 @
SET_FUNC MakeTile2, 0x8007F15
SET_FUNC MakeTile3, 0x800CEF9
SET_FUNC MakeTileSimple, 0x8001159 @ r0 x r1 y r2 tile
@ store tile into 0x200B000
@ coord x into 0x200b008, y into 0x200b00a
SET_DATA aiUnitType, 0x30046B8
@AI Table Stuff:
@0x030046B4: Pointer to current Black Hole Factory Deployment List
@0x030046B8: 0x1 = Airport Present, 0x2 = Port Present
@ Campaign Map Headers: 0x08615194
@0202FE0E - FE37 Mission Available/Completion toggle
@ 0x1 = Available
@ 0x2 = Complete
@ 0x4 = Factory Mission
@ 0 forest, 1 plain,
SET_FUNC SetSelectedTile, 0x8000CCD @ [200b02a]!!
SET_DATA Unk_200B06A, 0x200B06A @ byte stored to after making a tile
SET_DATA Unk_200B000, 0x200B000
SET_DATA Unk_200B007, 0x200B007
SET_DATA SelectedTileX, 0x200B008
SET_DATA SelectedTileY, 0x200B00A
SET_DATA Surplus, 0x200B012
SET_DATA SelectedTile, 0x200B02a @ press B in design room on tile
SET_DATA Unk_200B036, 0x200B036 @
SET_DATA SelectedTile_3A, 0x200B03A
SET_DATA PreviousTile_3C, 0x200B03C
SET_FUNC Rand, 0x80129E1
SET_FUNC __aeabi_idiv, 0x808AAAD
SET_FUNC Div, 0x808AAAD
SET_FUNC Mod, 0x808AAB1
SET_FUNC CpuSet, 0x808AAA9
SET_FUNC CpuFastSet, 0x808AAA5
SET_FUNC BgAffineSet, 0x808AAA1
SET_FUNC LoadDesignRoomName, 0x803CC85
SET_DATA gCh, 0x3003FC2 @ from 0x8078E10
@SET_DATA RandValues, 0x203FFFC
SET_DATA RandValues, 0x200B204
SET_DATA DesignRoom1Name, 0x200B204
SET_DATA RandBitflags, 0x203FFF8
SET_DATA gGameClock, 0x3004008 @ in 80368D4
SET_DATA gPlayer0, 0x2023284
SET_DATA gPlayer1, 0x20232C0
SET_DATA gPlayer2, 0x20232FC
SET_DATA gPlayer3, 0x2023338
SET_DATA gPlayer4, 0x2023374
@ GetClassAttBonus
@0804310C - Atk
@0804317C - Def
@080431EC - Mov
@0804325C - Rng
@ 200B09C
@ 200B204
@ 20004B2
@ E008000