mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-25 11:14:15 +01:00
Extract baserom calls from files
Extract calls from crt0.s, bard_music.s, battle_4.s
This commit is contained in:
parent
74bda5b680
commit
9f87103ea0
56
asm/crt0.s
56
asm/crt0.s
@ -18,17 +18,65 @@ Start: @ 8000000
|
|||||||
|
|
||||||
.global GPIOPortData
|
.global GPIOPortData
|
||||||
GPIOPortData: @ 80000C4
|
GPIOPortData: @ 80000C4
|
||||||
.hword 0
|
.2byte 0
|
||||||
|
|
||||||
.global GPIOPortDirection
|
.global GPIOPortDirection
|
||||||
GPIOPortDirection: @ 80000C6
|
GPIOPortDirection: @ 80000C6
|
||||||
.hword 0
|
.2byte 0
|
||||||
|
|
||||||
.global GPIOPortReadEnable
|
.global GPIOPortReadEnable
|
||||||
GPIOPortReadEnable: @ 80000C8
|
GPIOPortReadEnable: @ 80000C8
|
||||||
.hword 0
|
.2byte 0
|
||||||
|
|
||||||
.incbin "baserom.gba", 0xCA, 0x204 - 0xCA
|
@ 80000CA
|
||||||
|
.2byte 0
|
||||||
|
|
||||||
|
@ 80000CC
|
||||||
|
.space 0x34
|
||||||
|
|
||||||
|
.4byte 3
|
||||||
|
.4byte 2
|
||||||
|
|
||||||
|
.ascii "pokemon emerald version"
|
||||||
|
.space 9
|
||||||
|
|
||||||
|
.4byte gMonFrontPicTable
|
||||||
|
.4byte gMonBackPicTable
|
||||||
|
.4byte gMonPaletteTable
|
||||||
|
.4byte gMonShinyPaletteTable
|
||||||
|
.4byte gMonIconTable
|
||||||
|
.4byte gMonIconPaletteIndices
|
||||||
|
.4byte gMonIconPaletteTable
|
||||||
|
.4byte gSpeciesNames
|
||||||
|
.4byte gMoveNames
|
||||||
|
.4byte gDecorations
|
||||||
|
|
||||||
|
.4byte 0x00001270, 0x0000139c, 0x00000018, 0x00000988
|
||||||
|
.4byte 0x00003b24, 0x00000046, 0x000008e4, 0x000008ac
|
||||||
|
.4byte 0x00000182
|
||||||
|
|
||||||
|
.byte 0x07, 0x0a, 0x0a, 0x0a, 0x0c, 0x0c, 0x06, 0x0c
|
||||||
|
.byte 0x06, 0x10, 0x12, 0x0c, 0x0f, 0x0b, 0x01, 0x08
|
||||||
|
|
||||||
|
.4byte 0x0000000c, 0x00000f2c, 0x00003d88, 0x00000234
|
||||||
|
.4byte 0x00000238, 0x00000009, 0x0000000a, 0x00000000
|
||||||
|
.4byte 0x00000008, 0x00000ca8, 0x00000ca8, 0x000031c7
|
||||||
|
.4byte 0x000031b3, 0x00000000
|
||||||
|
|
||||||
|
.4byte gBaseStats
|
||||||
|
.4byte gAbilityNames
|
||||||
|
.4byte gAbilityDescriptionPointers
|
||||||
|
.4byte gItems
|
||||||
|
.4byte gBattleMoves
|
||||||
|
.4byte gUnknown_0832C400
|
||||||
|
.4byte gUnknown_0832C460
|
||||||
|
|
||||||
|
.4byte 0x000000a8, 0x00000864, 0x0000089b
|
||||||
|
|
||||||
|
.byte 0x1e, 0x1e, 0x10, 0x40
|
||||||
|
|
||||||
|
.4byte 0x0000322e, 0x00000498, 0x000031a8, 0x000031f8
|
||||||
|
.4byte 0x00000034, 0x00000000, 0x00000000
|
||||||
|
|
||||||
.arm
|
.arm
|
||||||
.align 2, 0
|
.align 2, 0
|
||||||
|
5576
data/bard_music.s
5576
data/bard_music.s
File diff suppressed because it is too large
Load Diff
116
data/battle_4.s
116
data/battle_4.s
@ -7,44 +7,134 @@
|
|||||||
|
|
||||||
|
|
||||||
gMoveEffectBS_Ptrs:: @ 831C224
|
gMoveEffectBS_Ptrs:: @ 831C224
|
||||||
.incbin "baserom.gba", 0x31c224, 0xa4
|
.4byte gUnknown_082DB36A
|
||||||
|
.4byte gUnknown_082DB36A
|
||||||
|
.4byte gUnknown_082DB386
|
||||||
|
.4byte gUnknown_082DB395
|
||||||
|
.4byte gUnknown_082DB3A4
|
||||||
|
.4byte gUnknown_082DB3B3
|
||||||
|
.4byte gUnknown_082DB3C9
|
||||||
|
.4byte gUnknown_082DB3E6
|
||||||
|
.4byte gUnknown_082DB36A
|
||||||
|
.4byte gUnknown_082DB36A
|
||||||
|
.4byte gUnknown_082DB3C2
|
||||||
|
.4byte gUnknown_082DB3D6
|
||||||
|
.4byte gUnknown_082DB36A
|
||||||
|
.4byte gUnknown_082DB3DD
|
||||||
|
.4byte gUnknown_082DB3F4
|
||||||
|
.4byte gUnknown_082DB36A
|
||||||
|
.4byte gUnknown_082DB36A
|
||||||
|
.4byte gUnknown_082DB36A
|
||||||
|
.4byte gUnknown_082DB36A
|
||||||
|
.4byte gUnknown_082DB36A
|
||||||
|
.4byte gUnknown_082DB36A
|
||||||
|
.4byte gUnknown_082DB36A
|
||||||
|
.4byte gUnknown_082DB36A
|
||||||
|
.4byte gUnknown_082DB36A
|
||||||
|
.4byte gUnknown_082DB36A
|
||||||
|
.4byte gUnknown_082DB36A
|
||||||
|
.4byte gUnknown_082DB36A
|
||||||
|
.4byte gUnknown_082DB36A
|
||||||
|
.4byte gUnknown_082DB36A
|
||||||
|
.4byte gUnknown_082DB36A
|
||||||
|
.4byte gUnknown_082DB36A
|
||||||
|
.4byte gUnknown_082DB36A
|
||||||
|
.4byte gUnknown_082DB36A
|
||||||
|
.4byte gUnknown_082DB36A
|
||||||
|
.4byte gUnknown_082DB36A
|
||||||
|
.4byte gUnknown_082DB36A
|
||||||
|
.4byte gUnknown_082DB36A
|
||||||
|
.4byte gUnknown_082DB36A
|
||||||
|
.4byte gUnknown_082DB3F4
|
||||||
|
|
||||||
|
.align 2
|
||||||
|
window_template 0x00, 0x01, 0x03, 0x07, 0x0f, 0x1f, 0x003f
|
||||||
|
|
||||||
|
.align 2
|
||||||
gUnknown_0831C2C8:: @ 831C2C8
|
gUnknown_0831C2C8:: @ 831C2C8
|
||||||
.incbin "baserom.gba", 0x31c2c8, 0x20
|
.incbin "graphics/battle_interface/unk_battlebox.gbapal"
|
||||||
|
|
||||||
|
.align 2
|
||||||
gUnknown_0831C2E8:: @ 831C2E8
|
gUnknown_0831C2E8:: @ 831C2E8
|
||||||
.incbin "baserom.gba", 0x31c2e8, 0xd8
|
.incbin "graphics/battle_interface/unk_battlebox.4bpp.lz"
|
||||||
|
|
||||||
|
.align 2
|
||||||
|
.byte 0x3A, 0x3E, 0x3B, 0x3F, 0x3C, 0x3D, 0x00, 0x00
|
||||||
|
|
||||||
|
.align 2
|
||||||
|
gUnknown_0831C3B8:: @ 831C3B8
|
||||||
|
.byte 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00
|
||||||
|
|
||||||
|
.align 2
|
||||||
gUnknown_0831C3C0:: @ 831C3C0
|
gUnknown_0831C3C0:: @ 831C3C0
|
||||||
.incbin "baserom.gba", 0x31c3c0, 0x18
|
.2byte 0xd75a @ tileTag
|
||||||
|
.2byte 0xd75a @ paletteTag
|
||||||
|
.4byte gUnknown_0831C3B8
|
||||||
|
.4byte gDummySpriteAnimTable
|
||||||
|
.4byte NULL
|
||||||
|
.4byte gDummySpriteAffineAnimTable
|
||||||
|
.4byte sub_804F450
|
||||||
|
|
||||||
|
.align 2
|
||||||
sProtectSuccessRates:: @ 831C3D8
|
sProtectSuccessRates:: @ 831C3D8
|
||||||
.incbin "baserom.gba", 0x31c3d8, 0x8
|
.2byte 0xffff, 0x7fff, 0x3fff, 0x1fff
|
||||||
|
|
||||||
|
.align 2
|
||||||
gUnknown_0831C3E0:: @ 831C3E0
|
gUnknown_0831C3E0:: @ 831C3E0
|
||||||
.incbin "baserom.gba", 0x31c3e0, 0x28
|
.2byte 0x0076, 0x00a5, 0x00a6, 0x0066
|
||||||
|
.2byte 0xfffe, 0x0044, 0x00f3, 0x00b6
|
||||||
|
.2byte 0x00c5, 0x00cb, 0x00c2, 0x00d6
|
||||||
|
.2byte 0x00a8, 0x010a, 0x0121, 0x010e
|
||||||
|
.2byte 0x0157, 0x010f, 0x0108, 0xffff
|
||||||
|
|
||||||
|
.align 2
|
||||||
gUnknown_0831C408:: @ 831C408
|
gUnknown_0831C408:: @ 831C408
|
||||||
.incbin "baserom.gba", 0x31c408, 0xc
|
.byte 0x01, 0xc8, 0x04, 0x96, 0x09, 0x64, 0x10, 0x50
|
||||||
|
.byte 0x20, 0x28, 0x30, 0x14
|
||||||
|
|
||||||
|
.align 2
|
||||||
gUnknown_0831C414:: @ 831C414
|
gUnknown_0831C414:: @ 831C414
|
||||||
.incbin "baserom.gba", 0x31c414, 0x14
|
.2byte 0x004e, 0x004b, 0x0059, 0x0038
|
||||||
|
.2byte 0x0039, 0x003d, 0x009d, 0x00f7
|
||||||
|
.2byte 0x0081, 0x0081
|
||||||
|
|
||||||
|
.align 2
|
||||||
gUnknown_0831C428:: @ 831C428
|
gUnknown_0831C428:: @ 831C428
|
||||||
.incbin "baserom.gba", 0x31c428, 0x18
|
.2byte 0x0064, 0x0014, 0x00fa, 0x0028
|
||||||
|
.2byte 0x01f4, 0x003c, 0x03e8, 0x0050
|
||||||
|
.2byte 0x07d0, 0x0064, 0xffff, 0xffff
|
||||||
|
|
||||||
|
.align 2
|
||||||
@ 831C440
|
@ 831C440
|
||||||
.include "data/pickup_items.inc"
|
.include "data/pickup_items.inc"
|
||||||
|
|
||||||
sTerrainToType:: @ 831C483
|
sTerrainToType:: @ 831C483
|
||||||
.incbin "baserom.gba", 0x31c483, 0xa
|
.byte 0x0c, 0x0c, 0x04, 0x0b, 0x0b, 0x0b, 0x05, 0x05
|
||||||
|
.byte 0x00, 0x00
|
||||||
|
|
||||||
sBallCatchBonuses:: @ 831C48D
|
sBallCatchBonuses:: @ 831C48D
|
||||||
.incbin "baserom.gba", 0x31c48d, 0x7
|
.byte 0x14, 0x0f, 0x0a, 0x0f, 0x00, 0x00, 0x00
|
||||||
|
|
||||||
|
.align 2
|
||||||
gUnknown_0831C494:: @ 831C494
|
gUnknown_0831C494:: @ 831C494
|
||||||
.incbin "baserom.gba", 0x31c494, 0x64
|
.byte 0x3d, 0x44, 0x3d, 0x44, 0x14, 0x2d, 0x54, 0x5c
|
||||||
|
.byte 0x46, 0x55, 0x20, 0x5c, 0x26, 0x45, 0x46, 0x55
|
||||||
|
.byte 0x14, 0x5a, 0x46, 0x5c, 0x1e, 0x32, 0x20, 0x5a
|
||||||
|
.byte 0x38, 0x4e, 0x38, 0x4e, 0x19, 0x28, 0x4b, 0x5a
|
||||||
|
.byte 0x45, 0x4b, 0x1c, 0x53, 0x23, 0x2d, 0x1d, 0x23
|
||||||
|
.byte 0x3e, 0x48, 0x1e, 0x32, 0x3a, 0x5f, 0x58, 0x5e
|
||||||
|
.byte 0x22, 0x2d, 0x1d, 0x28, 0x23, 0x28, 0x23, 0x5f
|
||||||
|
.byte 0x38, 0x4e, 0x38, 0x4e, 0x23, 0x50, 0x22, 0x5e
|
||||||
|
.byte 0x2c, 0x5e, 0x22, 0x28, 0x38, 0x4e, 0x38, 0x4e
|
||||||
|
.byte 0x1e, 0x58, 0x1e, 0x58, 0x1e, 0x2b, 0x1b, 0x21
|
||||||
|
.byte 0x28, 0x5a, 0x19, 0x57, 0x12, 0x58, 0x5a, 0x5f
|
||||||
|
.byte 0x58, 0x5e, 0x16, 0x2a, 0x2a, 0x5c, 0x2a, 0x2f
|
||||||
|
.byte 0x38, 0x4e, 0x38, 0x4e
|
||||||
|
|
||||||
|
.align 2
|
||||||
gUnknown_0831C4F8:: @ 831C4F8
|
gUnknown_0831C4F8:: @ 831C4F8
|
||||||
.incbin "baserom.gba", 0x31c4f8, 0x1c
|
.byte 0x03, 0x00, 0x01, 0x00, 0x00, 0x01, 0x03, 0x00
|
||||||
|
.byte 0x01, 0x02, 0x02, 0x00, 0x03, 0x01, 0x03, 0x01
|
||||||
|
.byte 0x02, 0x03, 0x03, 0x02, 0x01, 0x00, 0x02, 0x02
|
||||||
|
.byte 0x03, 0x00, 0x00, 0x00
|
||||||
|
|
||||||
|
@ -322,10 +322,43 @@ gUnknown_082DB350:: @ 82DB350
|
|||||||
.incbin "baserom.gba", 0x2db350, 0x11
|
.incbin "baserom.gba", 0x2db350, 0x11
|
||||||
|
|
||||||
gUnknown_082DB361:: @ 82DB361
|
gUnknown_082DB361:: @ 82DB361
|
||||||
.incbin "baserom.gba", 0x2db361, 0x17
|
.incbin "baserom.gba", 0x2db361, 0x9
|
||||||
|
|
||||||
|
gUnknown_082DB36A:: @ 82DB36A
|
||||||
|
.incbin "baserom.gba", 0x2db36A, 0xE
|
||||||
|
|
||||||
gUnknown_082DB378:: @ 82DB378
|
gUnknown_082DB378:: @ 82DB378
|
||||||
.incbin "baserom.gba", 0x2db378, 0xaa
|
.incbin "baserom.gba", 0x2db378, 0xE
|
||||||
|
|
||||||
|
gUnknown_082DB386:: @ 82DB386
|
||||||
|
.incbin "baserom.gba", 0x2db386, 0xF
|
||||||
|
|
||||||
|
gUnknown_082DB395:: @ 82DB395
|
||||||
|
.incbin "baserom.gba", 0x2db395, 0xF
|
||||||
|
|
||||||
|
gUnknown_082DB3A4:: @ 82DB3A4
|
||||||
|
.incbin "baserom.gba", 0x2db3A4, 0xF
|
||||||
|
|
||||||
|
gUnknown_082DB3B3:: @ 82DB3B3
|
||||||
|
.incbin "baserom.gba", 0x2db3B3, 0xF
|
||||||
|
|
||||||
|
gUnknown_082DB3C2:: @ 82DB3C2
|
||||||
|
.incbin "baserom.gba", 0x2db3C2, 0x7
|
||||||
|
|
||||||
|
gUnknown_082DB3C9:: @ 82DB3C9
|
||||||
|
.incbin "baserom.gba", 0x2db3C9, 0xD
|
||||||
|
|
||||||
|
gUnknown_082DB3D6:: @ 82DB3D6
|
||||||
|
.incbin "baserom.gba", 0x2db3D6, 0x7
|
||||||
|
|
||||||
|
gUnknown_082DB3DD:: @ 82DB3DD
|
||||||
|
.incbin "baserom.gba", 0x2db3DD, 0x9
|
||||||
|
|
||||||
|
gUnknown_082DB3E6:: @ 82DB3E6
|
||||||
|
.incbin "baserom.gba", 0x2db3E6, 0xE
|
||||||
|
|
||||||
|
gUnknown_082DB3F4:: @ 82DB3F4
|
||||||
|
.incbin "baserom.gba", 0x2db3F4, 0x2e
|
||||||
|
|
||||||
gUnknown_082DB422:: @ 82DB422
|
gUnknown_082DB422:: @ 82DB422
|
||||||
.incbin "baserom.gba", 0x2db422, 0xe
|
.incbin "baserom.gba", 0x2db422, 0xe
|
||||||
|
32
data/link.s
32
data/link.s
@ -256,52 +256,52 @@ gUnknown_082ED6E0:: @ 82ED6E0
|
|||||||
.2byte 0x0002, 0x7f7d, 0x0000, 0xffff
|
.2byte 0x0002, 0x7f7d, 0x0000, 0xffff
|
||||||
|
|
||||||
.ascii "RFU WAIT"
|
.ascii "RFU WAIT"
|
||||||
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
.space 7
|
||||||
|
|
||||||
.ascii "RFU BOOT"
|
.ascii "RFU BOOT"
|
||||||
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
.space 7
|
||||||
|
|
||||||
.ascii "RFU ERROR"
|
.ascii "RFU ERROR"
|
||||||
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
.space 6
|
||||||
|
|
||||||
.ascii "RFU RESET"
|
.ascii "RFU RESET"
|
||||||
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
.space 6
|
||||||
|
|
||||||
.ascii "RFU CONFIG"
|
.ascii "RFU CONFIG"
|
||||||
.byte 0x00, 0x00, 0x00, 0x00, 0x00
|
.space 5
|
||||||
|
|
||||||
.ascii "RFU START"
|
.ascii "RFU START"
|
||||||
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
.space 6
|
||||||
|
|
||||||
.ascii "RFU SC POLL"
|
.ascii "RFU SC POLL"
|
||||||
.byte 0x00, 0x00, 0x00, 0x00
|
.space 4
|
||||||
|
|
||||||
.ascii "RFU SP POLL"
|
.ascii "RFU SP POLL"
|
||||||
.byte 0x00, 0x00, 0x00, 0x00
|
.space 4
|
||||||
|
|
||||||
.ascii "RFU START"
|
.ascii "RFU START"
|
||||||
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
.space 6
|
||||||
|
|
||||||
.ascii "RFU SEND ERR"
|
.ascii "RFU SEND ERR"
|
||||||
.byte 0x00, 0x00, 0x00
|
.space 3
|
||||||
|
|
||||||
.ascii "RFU CP POLL"
|
.ascii "RFU CP POLL"
|
||||||
.byte 0x00, 0x00, 0x00, 0x00
|
.space 4
|
||||||
|
|
||||||
.ascii " "
|
.ascii " "
|
||||||
.byte 0x00, 0x00
|
.space 2
|
||||||
|
|
||||||
.ascii "RECOVER START "
|
.ascii "RECOVER START "
|
||||||
.byte 0x00, 0x00
|
.space 2
|
||||||
|
|
||||||
.ascii "DISSCONECT "
|
.ascii "DISSCONECT "
|
||||||
.byte 0x00, 0x00
|
.space 2
|
||||||
|
|
||||||
.ascii "RECOVER SUUSES"
|
.ascii "RECOVER SUUSES"
|
||||||
.byte 0x00, 0x00
|
.space 2
|
||||||
|
|
||||||
.ascii "RECOVER FAILED"
|
.ascii "RECOVER FAILED"
|
||||||
.byte 0x00, 0x00
|
.space 2
|
||||||
|
|
||||||
.align 2
|
.align 2
|
||||||
gUnknown_082ED7E0:: @ 82ED7E0
|
gUnknown_082ED7E0:: @ 82ED7E0
|
||||||
|
19
graphics/battle_interface/unk_battlebox.pal
Normal file
19
graphics/battle_interface/unk_battlebox.pal
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
JASC-PAL
|
||||||
|
0100
|
||||||
|
16
|
||||||
|
255 255 255
|
||||||
|
255 255 255
|
||||||
|
106 90 115
|
||||||
|
0 0 0
|
||||||
|
213 230 255
|
||||||
|
189 205 238
|
||||||
|
238 238 255
|
||||||
|
106 172 197
|
||||||
|
90 139 180
|
||||||
|
123 197 205
|
||||||
|
0 0 0
|
||||||
|
0 0 0
|
||||||
|
123 197 255
|
||||||
|
0 0 139
|
||||||
|
255 131 131
|
||||||
|
164 0 0
|
BIN
graphics/battle_interface/unk_battlebox.png
Normal file
BIN
graphics/battle_interface/unk_battlebox.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 174 B |
Loading…
Reference in New Issue
Block a user