-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.asm
48 lines (39 loc) · 804 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
43
44
45
46
47
48
.gba
.thumb
.open "rom.gba", "test.gba", 0x08000000
.org allocation
.area allocation_size
.importobj "build/linked.o"
.endarea
.org 0x08043A68
.area 8, 0xFE
ldr r3, =RandomlyGivePartyPokerus |1
bx r3
.pool
.endarea
.org 0x08043B38
.area 8, 0xFE
ldr r3, =UpdatePartyPokerusTime |1
bx r3
.pool
.endarea
.org 0x08043B40
.area 8, 0xFE
ldr r3, =PartySpreadPokerus |1
bx r3
.pool
.endarea
.if 0 <= Special_IsPokerusInParty
.org gSpecials + Special_IsPokerusInParty * 4
.word IsPokerusInParty |1
.endif
.if 0 <= CHANCE_REDUCE_POKERUS_128_STEPS
.org 0x0806D74C
.area 0x34, 0xFE
ldr r3, =UpdateHappinessStepCounter |1
bx r3
.pool
.endarea
.endif
.close
.definelabel gSpecials, readu32("rom.gba", 0x08069F18 & 0x1FFFFFF)