summaryrefslogtreecommitdiff
path: root/wram.asm
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2013-08-31 12:47:23 -0500
committerBryan Bishop <kanzure@gmail.com>2013-08-31 12:47:23 -0500
commit12c1d874b94cf51523b072477a59b0cc398fc8d3 (patch)
treea3940230cf443d809780f8f7b19748f782b17fdd /wram.asm
parent724215ea7519c28b602f72440e1ec73e2e6cf388 (diff)
parentc0a01c998240bacae77addbb08a5d2133cf58a21 (diff)
Merge branch 'master' into refactor-preprocessor
Conflicts: preprocessor.py Also bump the extras submodule to a version of pokemontools with a suitable version of the preprocessor. The changes from 'master' for preprocessor.py have been inserted into pokemontools prior to the submodule bump.
Diffstat (limited to 'wram.asm')
-rw-r--r--wram.asm237
1 files changed, 215 insertions, 22 deletions
diff --git a/wram.asm b/wram.asm
index 014a86f6b..14fb8d5a3 100644
--- a/wram.asm
+++ b/wram.asm
@@ -13,9 +13,9 @@ VBGMap1:
SECTION "WRAMBank0",WRAM0[$c000]
-SECTION "stack",WRAM0[$c000]
- ds $100
-Stack: ; c100
+SECTION "stack",WRAM0[$c0ff]
+Stack: ; c0ff
+ ds -$100
SECTION "audio",WRAM0[$c100]
@@ -1627,7 +1627,12 @@ SATURDAY EQU 6
PlayerSprite: ; d4d8
ds 1
- ds 5
+ ds 3
+
+PlayerPalette: ; d4dc
+ ds 1
+
+ ds 1
PlayerDirection: ; d4de
; uses bits 2 and 3 / $0c / %00001100
@@ -1637,8 +1642,17 @@ PlayerDirection: ; d4de
; $11 right
ds 1
+ ds 2
+
+PlayerAction: ; d4e1
+; 1 standing
+; 2 walking
+; 4 spinning
+; 6 fishing
+ ds 1
+
+ ds 2
-SECTION "MapEngine",WRAMX[$d4e4],BANK[1]
StandingTile: ; d4e4
ds 1
StandingTile2: ; d4e5
@@ -1698,7 +1712,10 @@ StatusFlags2: ; d84d
Money: ; d84e
ds 3
- ds 6
+ ds 4
+
+Coins: ; d855
+ ds 2
Badges:
JohtoBadges: ; d857
@@ -1728,7 +1745,12 @@ NumBalls: ; d8d7
Balls: ; d8d8
ds 25
BallsEnd
-
+
+PCItems: ; d8f1
+ ds 101
+PCItemsEnd
+
+
SECTION "overworld",WRAMX[$d95b],BANK[1]
WhichRegisteredItem: ; d95b
REGISTERED_POCKET EQU %11000000
@@ -1753,23 +1775,16 @@ UndergroundSwitchPositions: ; d963
FarfetchdPosition: ; d964
ds 1 ; which position the ilex farfetch'd is in
-SECTION "Events",WRAMX[$dad4],BANK[1]
+SECTION "Events",WRAMX[$da72],BANK[1]
+EventFlags: ; da72
;RoomDecorations: ; dac6
-; db 7
-
-HoOhEvent: ; dad4
- ds 1
-LugiaEvent: ; dad5
- ds 1
-
-; TODO
-;SuicuneEvent: ; dad8 (tin tower)
;TeamRocketAzaleaTownAttackEvent: ; db51
-;SudowoodoEvent: ; db51
;PoliceAtElmsLabEvent: ; db52
;SalesmanMahoganyTownEvent: ; db5c
;RedGyaradosEvent: ; db5c
+ ds 250
+; db6c
SECTION "BoxNames",WRAMX[$db75],BANK[1]
; 8 chars + $50
@@ -1982,6 +1997,7 @@ PartyMon5Nickname: ; de6d
ds 11
PartyMon6Nickname: ; de78
ds 11
+PartyMonNicknamesEnd
SECTION "Pokedex",WRAMX[$de99],BANK[1]
PokedexSeen: ; de99
@@ -2090,12 +2106,189 @@ RoamMon3DVs: ; dfe2
SECTION "WRAMBank5",WRAMX[$d000],BANK[5]
; 8 4-color palettes
-Unkn1Pals:
+Unkn1Pals: ; d000
ds $40
-Unkn2Pals:
+Unkn2Pals: ; d040
ds $40
-BGPals:
+BGPals: ; d080
ds $40
-OBPals:
+OBPals: ; d0c0
ds $40
+LYOverrides: ; d100
+ ds 144
+LYOverridesEnd
+
+
+SECTION "SRAMBank1",SRAM,BANK[1]
+
+SECTION "BoxMons",SRAM[$ad10],BANK[1]
+BoxCount: ; ad10
+ ds 1
+BoxSpecies: ; ad11
+ ds 20
+ ds 1
+BoxMons:
+BoxMon1:
+BoxMon1Species: ; ad26
+ ds 1
+BoxMon1Item: ; ad27
+ ds 1
+BoxMon1Moves: ; ad28
+ ds 4
+BoxMon1ID: ; ad2c
+ ds 2
+BoxMon1Exp: ; ad2e
+ ds 3
+BoxMon1HPExp: ; ad31
+ ds 2
+BoxMon1AtkExp: ; ad33
+ ds 2
+BoxMon1DefExp: ; ad35
+ ds 2
+BoxMon1SpdExp: ; ad37
+ ds 2
+BoxMon1SpcExp: ; ad39
+ ds 2
+BoxMon1DVs: ; ad3b
+ ds 2
+BoxMon1PP: ; ad3d
+ ds 4
+BoxMon1Happiness: ; ad41
+ ds 1
+BoxMon1PokerusStatus: ; ad42
+ ds 1
+BoxMon1CaughtData:
+BoxMon1CaughtTime:
+BoxMon1CaughtLevel: ; ad43
+ ds 1
+BoxMon1CaughtGender:
+BoxMon1CaughtLocation: ; ad44
+ ds 1
+BoxMon1Level: ; ad45
+ ds 1
+
+BoxMon2: ; ad46
+ ds 32
+BoxMon3: ; ad66
+ ds 32
+BoxMon4: ; ad86
+ ds 32
+BoxMon5: ; ada6
+ ds 32
+BoxMon6: ; adc6
+ ds 32
+BoxMon7: ; ade6
+ ds 32
+BoxMon8: ; ae06
+ ds 32
+BoxMon9: ; ae26
+ ds 32
+BoxMon10: ; ae46
+ ds 32
+BoxMon11: ; ae66
+ ds 32
+BoxMon12: ; ae86
+ ds 32
+BoxMon13: ; aea6
+ ds 32
+BoxMon14: ; aec6
+ ds 32
+BoxMon15: ; aee6
+ ds 32
+BoxMon16: ; af06
+ ds 32
+BoxMon17: ; af26
+ ds 32
+BoxMon18: ; af46
+ ds 32
+BoxMon19: ; af66
+ ds 32
+BoxMon20: ; af86
+ ds 32
+
+BoxMonOT:
+BoxMon1OT: ; afa6
+ ds 11
+BoxMon2OT: ; afb1
+ ds 11
+BoxMon3OT: ; afbc
+ ds 11
+BoxMon4OT: ; afc7
+ ds 11
+BoxMon5OT: ; afd2
+ ds 11
+BoxMon6OT: ; afdd
+ ds 11
+BoxMon7OT: ; afe8
+ ds 11
+BoxMon8OT: ; aff3
+ ds 11
+BoxMon9OT: ; affe
+ ds 11
+BoxMon10OT: ; b009
+ ds 11
+BoxMon11OT: ; b014
+ ds 11
+BoxMon12OT: ; b01f
+ ds 11
+BoxMon13OT: ; b02a
+ ds 11
+BoxMon14OT: ; b035
+ ds 11
+BoxMon15OT: ; b040
+ ds 11
+BoxMon16OT: ; b04b
+ ds 11
+BoxMon17OT: ; b056
+ ds 11
+BoxMon18OT: ; b061
+ ds 11
+BoxMon19OT: ; b06c
+ ds 11
+BoxMon20OT: ; b077
+ ds 11
+
+BoxMonNicknames:
+BoxMon1Nickname: ; b082
+ ds 11
+BoxMon2Nickname: ; b08d
+ ds 11
+BoxMon3Nickname: ; b098
+ ds 11
+BoxMon4Nickname: ; b0a3
+ ds 11
+BoxMon5Nickname: ; b0ae
+ ds 11
+BoxMon6Nickname: ; b0b9
+ ds 11
+BoxMon7Nickname: ; b0c4
+ ds 11
+BoxMon8Nickname: ; b0cf
+ ds 11
+BoxMon9Nickname: ; b0da
+ ds 11
+BoxMon10Nickname: ; b0e5
+ ds 11
+BoxMon11Nickname: ; b0f0
+ ds 11
+BoxMon12Nickname: ; b0fb
+ ds 11
+BoxMon13Nickname: ; b106
+ ds 11
+BoxMon14Nickname: ; b111
+ ds 11
+BoxMon15Nickname: ; b11c
+ ds 11
+BoxMon16Nickname: ; b127
+ ds 11
+BoxMon17Nickname: ; b132
+ ds 11
+BoxMon18Nickname: ; b13d
+ ds 11
+BoxMon19Nickname: ; b148
+ ds 11
+BoxMon20Nickname: ; b153
+ ds 11
+BoxMonNicknamesEnd
+