-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.asm
42 lines (28 loc) · 884 Bytes
/
main.asm
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
.gba
.thumb
.open "rom.gba", "test.gba", 0x08000000
// -----------------------------------------------------------------------------
.org allocation
.area allocation_size
.importobj "build/linked.o"
.endarea
// -----------------------------------------------------------------------------
.if INSERT_INGAME_TRADE_HACK
.org 0x08053B48
.area 0x15A, 0xFE
ldr r3, =_CreateInGameTradePokemon |1
bx r3
.pool
.endarea
// skip over constants in the middle of the function
.org 0x08053CB4
.fill 0x1A, 0xFE
.endif
// -----------------------------------------------------------------------------
SIZEOF_INGAME_TRADE equ 0x3C
.org readu32("rom.gba", sInGameTradesPtr & 0x1FFFFFF)
.area NUM_INGAME_TRADES * SIZEOF_INGAME_TRADE
.importobj "build/src/sInGameTrades.o"
.endarea
// -----------------------------------------------------------------------------
.close