Extract baseroms from field_effect.s

This commit is contained in:
Diegoisawesome 2018-01-15 02:49:52 -06:00
parent 79451b5bb4
commit 90c175b73f
14 changed files with 304 additions and 56 deletions

View File

@ -8,51 +8,88 @@
gNewGameBirchPic:: @ 8553A90 gNewGameBirchPic:: @ 8553A90
.incbin "graphics/birch_speech/birch.4bpp" .incbin "graphics/birch_speech/birch.4bpp"
.incbin "baserom.gba", 0x554290, 0x66c0 .space 0x3800
.incbin "graphics/unused/intro_birch_beauty.4bpp"
.align 2 .align 2
gNewGameBirchPalette:: @ 855A950 gNewGameBirchPalette:: @ 855A950
.incbin "graphics/birch_speech/birch.gbapal" .incbin "graphics/birch_speech/birch.gbapal"
.align 2 .align 2
.incbin "baserom.gba", 0x55a970, 0x20 gSpriteImage_855A970:: @ 855A970
.incbin "graphics/misc/pokeball_glow.4bpp"
.align 2 .align 2
gFieldEffectObjectPalette4:: @ 855A990 gFieldEffectObjectPalette4:: @ 855A990
.incbin "graphics/map_objects/palettes/field_effect_object_palette_04.gbapal" .incbin "graphics/map_objects/palettes/field_effect_object_palette_04.gbapal"
.incbin "baserom.gba", 0x55a9b0, 0x480 .align 2
gSpriteImage_855A9B0:: @ 855A9B0
.incbin "graphics/misc/pokecenter_monitor/0.4bpp"
.align 2
gSpriteImage_855AA70:: @ 855AA70
.incbin "graphics/misc/pokecenter_monitor/1.4bpp"
.align 2
gSpriteImage_855AB30:: @ 855AB30
.incbin "graphics/misc/big_hof_monitor.4bpp"
.align 2
gSpriteImage_855AD30:: @ 855AD30
.incbin "graphics/misc/small_hof_monitor.4bpp"
.align 2 .align 2
gFieldEffectObjectPalette5:: @ 855AE30 gFieldEffectObjectPalette5:: @ 855AE30
.incbin "graphics/map_objects/palettes/field_effect_object_palette_05.gbapal" .incbin "graphics/map_objects/palettes/field_effect_object_palette_05.gbapal"
.align 2
gUnknown_0855AE50:: @ 855AE50 gUnknown_0855AE50:: @ 855AE50
.incbin "baserom.gba", 0x55ae50, 0x200 .incbin "graphics/misc/field_move_streaks.4bpp"
.align 2
gUnknown_0855B050:: @ 855B050 gUnknown_0855B050:: @ 855B050
.incbin "baserom.gba", 0x55b050, 0x20 .incbin "graphics/misc/field_move_streaks.gbapal"
.align 2
gUnknown_0855B070:: @ 855B070 gUnknown_0855B070:: @ 855B070
.incbin "baserom.gba", 0x55b070, 0x280 .incbin "graphics/misc/field_move_streaks_map.bin"
.align 2
gUnknown_0855B2F0:: @ 855B2F0 gUnknown_0855B2F0:: @ 855B2F0
.incbin "baserom.gba", 0x55b2f0, 0x80 .incbin "graphics/misc/darkness_field_move_streaks.4bpp"
.align 2
gUnknown_0855B370:: @ 855B370 gUnknown_0855B370:: @ 855B370
.incbin "baserom.gba", 0x55b370, 0x20 .incbin "graphics/misc/darkness_field_move_streaks.gbapal"
.align 2
gUnknown_0855B390:: @ 855B390 gUnknown_0855B390:: @ 855B390
.incbin "baserom.gba", 0x55b390, 0x280 .incbin "graphics/misc/darkness_field_move_streaks_map.bin"
.align 2
gUnknown_0855B610:: @ 855B610 gUnknown_0855B610:: @ 855B610
.incbin "baserom.gba", 0x55b610, 0x20 .incbin "graphics/misc/spotlight.gbapal"
.align 2
gUnknown_0855B630:: @ 855B630 gUnknown_0855B630:: @ 855B630
.incbin "baserom.gba", 0x55b630, 0xbc0 .incbin "graphics/misc/spotlight.4bpp"
.align 2
gUnknown_0855C170:: @ 855C170
.incbin "graphics/unknown/unknown_55C170.4bpp"
.align 2
gUnknown_0855C1F0:: @ 855C1F0 gUnknown_0855C1F0:: @ 855C1F0
.incbin "baserom.gba", 0x55c1f0, 0x20 .4byte FieldEffectCmd_loadtiles
.4byte FieldEffectCmd_loadfadedpal
.4byte FieldEffectCmd_loadpal
.4byte FieldEffectCmd_callnative
.4byte FieldEffectCmd_end
.4byte FieldEffectCmd_loadgfx_callnative
.4byte FieldEffectCmd_loadtiles_callnative
.4byte FieldEffectCmd_loadfadedpal_callnative
.align 2 .align 2
@ TODO: something else uses these too @ TODO: something else uses these too
@ -61,7 +98,12 @@ gNewGameBirchOamAttributes:: @ 855C210
.2byte 0 .2byte 0
.align 2 .align 2
.incbin "baserom.gba", 0x55c218, 0x10 gOamData_855C218:: @ 855C218
.2byte 0x0000, 0x0000, 0x0000, 0x0000
.align 2
gOamData_855C220:: @ 855C220
.2byte 0x0000, 0x4000, 0x0000, 0x0000
.align 2 .align 2
gNewGameBirchPicTable:: @ 855C228 gNewGameBirchPicTable:: @ 855C228
@ -82,13 +124,7 @@ gNewGameBirchImageAnimTable:: @ 855C240
.align 2 .align 2
gNewGameBirchObjectTemplate:: @ 855C244 gNewGameBirchObjectTemplate:: @ 855C244
.2byte 0xFFFF @ tiles tag spr_template 0xFFFF, 0x1006, gNewGameBirchOamAttributes, gNewGameBirchImageAnimTable, gNewGameBirchPicTable, gDummySpriteAffineAnimTable, SpriteCallbackDummy
.2byte 0x1006 @ palette tag
.4byte gNewGameBirchOamAttributes
.4byte gNewGameBirchImageAnimTable
.4byte gNewGameBirchPicTable
.4byte gDummySpriteAffineAnimTable
.4byte SpriteCallbackDummy
.align 2 .align 2
gFieldEffectObjectPaletteInfo4:: @ 855C25C gFieldEffectObjectPaletteInfo4:: @ 855C25C
@ -98,109 +134,318 @@ gFieldEffectObjectPaletteInfo4:: @ 855C25C
gFieldEffectObjectPaletteInfo5:: @ 855C264 gFieldEffectObjectPaletteInfo5:: @ 855C264
obj_pal gFieldEffectObjectPalette5, 0x1010 obj_pal gFieldEffectObjectPalette5, 0x1010
.incbin "baserom.gba", 0x55c26c, 0x40 .align 2
gOamData_855C26C:: @ 855C26C
.2byte 0x4000, 0x8000, 0x0000, 0x0000
.align 2
gUnknown_855C274:: @ 855C274
obj_frame_tiles gSpriteImage_855A970, 0x0020
.align 2
gUnknown_855C27C:: @ 855C27C
obj_frame_tiles gSpriteImage_855A9B0, 0x00c0
obj_frame_tiles gSpriteImage_855AA70, 0x00c0
.align 2
gUnknown_855C28C:: @ 855C28C
obj_frame_tiles gSpriteImage_855AB30, 0x0200
.align 2
gUnknown_855C294:: @ 855C294
obj_frame_tiles gSpriteImage_855AD30, 0x0200
.align 2
gSubspriteTable_855C29C:: @ 855C29C
subsprite -12, -8, 2, 0, 16x8
subsprite 4, -8, 2, 2, 8x8
subsprite -12, 0, 2, 3, 16x8
subsprite 4, 0, 2, 5, 8x8
.align 2
gUnknown_0855C2AC:: @ 855C2AC gUnknown_0855C2AC:: @ 855C2AC
.incbin "baserom.gba", 0x55c2ac, 0x18 .4byte 4, gSubspriteTable_855C29C
.align 2
gSubspriteTable_855C2B4:: @ 855C2B4
subsprite -32, -8, 2, 0, 32x8
subsprite 0, -8, 2, 4, 32x8
subsprite -32, 0, 2, 8, 32x8
subsprite 0, 0, 2, 12, 32x8
.align 2
gUnknown_0855C2C4:: @ 855C2C4 gUnknown_0855C2C4:: @ 855C2C4
.incbin "baserom.gba", 0x55c2c4, 0x40 .4byte 4, gSubspriteTable_855C2B4
.align 2
gUnknown_0855C2CC:: @ 855C2CC
.2byte 0x0000, 0x0001, 0xfffe, 0x0000
.align 2
gUnknown_0855C2D4:: @ 855C2D4
.2byte 0x0000, 0x0010, 0x0001, 0x0010, 0x0000, 0x0010, 0x0001, 0x0010, 0x0000, 0x0010, 0x0001, 0x0010, 0x0000, 0x0010, 0x0001, 0x0010
.2byte 0xffff, 0x0000
.align 2
gUnknown_0855C2F8:: @ 855C2F8
.4byte gUnknown_0855C2CC
.4byte gUnknown_0855C2D4
.align 2
gUnknown_0855C300:: @ 855C300
.4byte gUnknown_0855C2CC
.align 2
gUnknown_0855C304:: @ 855C304 gUnknown_0855C304:: @ 855C304
.incbin "baserom.gba", 0x55c304, 0x18 spr_template 0xffff, 0x1007, gOamData_855C218, gUnknown_0855C2F8, gUnknown_855C274, gDummySpriteAffineAnimTable, sub_80B6828
.align 2
gUnknown_0855C31C:: @ 855C31C gUnknown_0855C31C:: @ 855C31C
.incbin "baserom.gba", 0x55c31c, 0x18 spr_template 0xffff, 0x1004, gOamData_855C220, gUnknown_0855C2F8, gUnknown_855C27C, gDummySpriteAffineAnimTable, sub_80B68AC
.align 2
gUnknown_0855C334:: @ 855C334 gUnknown_0855C334:: @ 855C334
.incbin "baserom.gba", 0x55c334, 0x18 spr_template 0xffff, 0x1010, gOamData_855C220, gUnknown_0855C300, gUnknown_855C28C, gDummySpriteAffineAnimTable, sub_80B6970
.align 2
gUnknown_0855C34C:: @ 855C34C gUnknown_0855C34C:: @ 855C34C
.incbin "baserom.gba", 0x55c34c, 0x18 spr_template 0xffff, 0x1010, gOamData_855C26C, gUnknown_0855C300, gUnknown_855C294, gDummySpriteAffineAnimTable, sub_80B6970
.align 2
gUnknown_0855C364:: @ 855C364 gUnknown_0855C364:: @ 855C364
.incbin "baserom.gba", 0x55c364, 0x10 .4byte sub_80B6214
.4byte sub_80B6250
.4byte sub_80B628C
.4byte sub_80B62B4
.align 2
gUnknown_0855C374:: @ 855C374 gUnknown_0855C374:: @ 855C374
.incbin "baserom.gba", 0x55c374, 0x10 .4byte sub_80B6360
.4byte sub_80B63D4
.4byte sub_80B6404
.4byte sub_80B642C
.align 2
gUnknown_0855C384:: @ 855C384 gUnknown_0855C384:: @ 855C384
.incbin "baserom.gba", 0x55c384, 0x20 .4byte sub_80B64DC
.4byte sub_80B6574
.4byte sub_80B65A8
.4byte sub_80B66E8
.4byte sub_80B67DC
.4byte sub_80B67F8
.4byte sub_80B6800
.4byte nullsub_97
.align 1
gUnknown_0855C3A4:: @ 855C3A4 gUnknown_0855C3A4:: @ 855C3A4
.incbin "baserom.gba", 0x55c3a4, 0x18 .2byte 0x0000, 0x0000, 0x0006, 0x0000, 0x0000, 0x0004, 0x0006, 0x0004, 0x0000, 0x0008, 0x0006, 0x0008
gUnknown_0855C3BC:: @ 855C3BC gUnknown_0855C3BC:: @ 855C3BC
.incbin "baserom.gba", 0x55c3bc, 0x4 .byte 0x10, 0x0c, 0x08, 0x00
gUnknown_0855C3C0:: @ 855C3C0 gUnknown_0855C3C0:: @ 855C3C0
.incbin "baserom.gba", 0x55c3c0, 0x4 .byte 0x10, 0x0c, 0x08, 0x00
gUnknown_0855C3C4:: @ 855C3C4 gUnknown_0855C3C4:: @ 855C3C4
.incbin "baserom.gba", 0x55c3c4, 0x4 .byte 0x00, 0x00, 0x00, 0x00
.align 2
gUnknown_0855C3C8:: @ 855C3C8 gUnknown_0855C3C8:: @ 855C3C8
.incbin "baserom.gba", 0x55c3c8, 0x1c .4byte sub_80B6BCC
.4byte sub_80B6C74
.4byte sub_80B6C90
.4byte sub_80B6D04
.4byte sub_80B6DBC
.4byte sub_80B6DD8
.4byte sub_80B6E18
.align 2
gUnknown_0855C3E4:: @ 855C3E4 gUnknown_0855C3E4:: @ 855C3E4
.incbin "baserom.gba", 0x55c3e4, 0x18 .4byte sub_80B6EC0
.4byte sub_80B6EE0
.4byte sub_80B6F50
.4byte sub_80B6F74
.4byte sub_80B6F84
.4byte sub_80B6FA8
.align 2
gUnknown_0855C3FC:: @ 855C3FC gUnknown_0855C3FC:: @ 855C3FC
.incbin "baserom.gba", 0x55c3fc, 0x1c .4byte sub_80B7114
.4byte sub_80B7190
.4byte sub_80B71D0
.4byte sub_80B7230
.4byte sub_80B7270
.4byte sub_80B72D0
.4byte sub_80B72F4
.align 2
gUnknown_0855C418:: @ 855C418 gUnknown_0855C418:: @ 855C418
.incbin "baserom.gba", 0x55c418, 0x14 .4byte sub_80B73D0
.4byte waterfall_1_do_anim_probably
.4byte waterfall_2_wait_anim_finish_probably
.4byte sub_80B7450
.4byte sub_80B7478
.align 2
gUnknown_0855C42C:: @ 855C42C gUnknown_0855C42C:: @ 855C42C
.incbin "baserom.gba", 0x55c42c, 0xc .4byte dive_1_lock
.4byte dive_2_unknown
.4byte dive_3_unknown
.align 2
gUnknown_0855C438:: @ 855C438 gUnknown_0855C438:: @ 855C438
.incbin "baserom.gba", 0x55c438, 0x18 .4byte sub_80B764C
.4byte sub_80B7684
.4byte sub_80B76B8
.4byte sub_80B7704
.4byte sub_80B77F8
.4byte sub_80B7814
.align 2
gUnknown_0855C450:: @ 855C450 gUnknown_0855C450:: @ 855C450
.incbin "baserom.gba", 0x55c450, 0x10 .4byte sub_80B78EC
.4byte sub_80B791C
.4byte sub_80B7968
.4byte sub_80B79BC
.align 2
gUnknown_0855C460:: @ 855C460 gUnknown_0855C460:: @ 855C460
.incbin "baserom.gba", 0x55c460, 0x14 .4byte sub_80B7AE8
.4byte sub_80B7B18
.4byte sub_80B7B94
.4byte sub_80B7BCC
.4byte sub_80B7BF4
.align 2
gUnknown_0855C474:: @ 855C474 gUnknown_0855C474:: @ 855C474
.incbin "baserom.gba", 0x55c474, 0x8 .4byte sub_80B7D14
.4byte sub_80B7D34
gUnknown_0855C47C:: @ 855C47C gUnknown_0855C47C:: @ 855C47C
.incbin "baserom.gba", 0x55c47c, 0x8 .byte 0x01, 0x03, 0x04, 0x02, 0x01, 0x00, 0x00, 0x00
.align 2
gUnknown_0855C484:: @ 855C484 gUnknown_0855C484:: @ 855C484
.incbin "baserom.gba", 0x55c484, 0x8 .4byte sub_80B7EC4
.4byte sub_80B7EE8
.align 2
gUnknown_0855C48C:: @ 855C48C gUnknown_0855C48C:: @ 855C48C
.incbin "baserom.gba", 0x55c48c, 0x10 .4byte sub_80B800C
.4byte sub_80B8034
.4byte sub_80B80C4
.4byte sub_80B8198
.align 2
gUnknown_0855C49C:: @ 855C49C gUnknown_0855C49C:: @ 855C49C
.incbin "baserom.gba", 0x55c49c, 0xc .4byte sub_80B8280
.4byte sub_80B830C
.4byte sub_80B8410
.align 2
gUnknown_0855C4A8:: @ 855C4A8 gUnknown_0855C4A8:: @ 855C4A8
.incbin "baserom.gba", 0x55c4a8, 0x1c .4byte sub_80B8584
.4byte sub_80B85F8
.4byte sub_80B8660
.4byte sub_80B86EC
.4byte sub_80B871C
.4byte sub_80B8770
.4byte overworld_bg_setup_2
.align 2
gUnknown_0855C4C4:: @ 855C4C4 gUnknown_0855C4C4:: @ 855C4C4
.incbin "baserom.gba", 0x55c4c4, 0x1c .4byte sub_80B88E4
.4byte sub_80B8920
.4byte sub_80B898C
.4byte sub_80B89DC
.4byte sub_80B8A0C
.4byte sub_80B8A44
.4byte sub_80B8A64
.align 2
gUnknown_0855C4E0:: @ 855C4E0 gUnknown_0855C4E0:: @ 855C4E0
.incbin "baserom.gba", 0x55c4e0, 0x14 .4byte sub_80B8DB4
.4byte sub_80B8E14
.4byte sub_80B8E60
.4byte sub_80B8EA8
.4byte sub_80B8F24
.align 2
gUnknown_0855C4F4:: @ 855C4F4 gUnknown_0855C4F4:: @ 855C4F4
.incbin "baserom.gba", 0x55c4f4, 0x54 .4byte sub_80B9204
.4byte sub_80B925C
.4byte sub_80B92A0
.4byte sub_80B92F8
.4byte sub_80B933C
.4byte sub_80B9390
.4byte sub_80B9418
.4byte sub_80B9474
.4byte sub_80B9494
.align 2
gUnknown_0855C518:: @ 855C518
.2byte 0x0008, 0x0008, 0x00e2, 0x0000, 0x001c, 0x001c, 0x1e00, 0x0000, 0x7fff, 0x0000, 0x0000, 0x0000
.align 2
gUnknown_0855C530:: @ 855C530
.2byte 0x0100, 0x0100, 0x0040, 0x0000, 0xfff6, 0xfff6, 0x1600, 0x0000, 0x7fff, 0x0000, 0x0000, 0x0000
.align 2
gUnknown_0855C548:: @ 855C548 gUnknown_0855C548:: @ 855C548
.incbin "baserom.gba", 0x55c548, 0x8 .4byte gUnknown_0855C518
.4byte gUnknown_0855C530
.align 2
gUnknown_0855C550:: @ 855C550 gUnknown_0855C550:: @ 855C550
.incbin "baserom.gba", 0x55c550, 0x1c .4byte sub_80B9804
.4byte sub_80B98B8
.4byte sub_80B9924
.4byte sub_80B9978
.4byte sub_80B99F0
.4byte sub_80B9A28
.4byte sub_80B9A60
gUnknown_0855C56C:: @ 855C56C gUnknown_0855C56C:: @ 855C56C
.incbin "baserom.gba", 0x55c56c, 0x24 .byte 0xfe, 0xff, 0xfc, 0xff, 0xfb, 0xff, 0xfa, 0xff, 0xf9, 0xff, 0xf8, 0xff, 0xf8, 0xff, 0xf8, 0xff, 0xf9, 0xff, 0xf9, 0xff, 0xfa, 0xff, 0xfb, 0xff, 0xfd, 0xff, 0xfe, 0xff, 0x00, 0x00, 0x02, 0x00
.byte 0x04, 0x00, 0x08, 0x00
.align 2
gUnknown_0855C590:: @ 855C590 gUnknown_0855C590:: @ 855C590
.incbin "baserom.gba", 0x55c590, 0x5c .4byte sub_80B9C28
.4byte sub_80B9C54
.4byte sub_80B9CDC
.align 2
gUnknown_0855C59C:: @ 855C59C
obj_frame_tiles gUnknown_0855C170, 0x0020
obj_frame_tiles gUnknown_0855C170 + 0x20, 0x0020
obj_frame_tiles gUnknown_0855C170 + 0x40, 0x0020
obj_frame_tiles gUnknown_0855C170 + 0x60, 0x0020
.align 2
gUnknown_0855C5BC:: @ 855C5BC
.2byte 0x0000, 0x0000, 0xffff, 0x0000
.align 2
gUnknown_0855C5C4:: @ 855C5C4
.2byte 0x0001, 0x0000, 0xffff, 0x0000
.align 2
gUnknown_0855C5CC:: @ 855C5CC
.2byte 0x0002, 0x0000, 0xffff, 0x0000
.align 2
gUnknown_0855C5D4:: @ 855C5D4
.2byte 0x0003, 0x0000, 0xffff, 0x0000
.align 2
gUnknown_0855C5DC:: @ 855C5DC
.4byte gUnknown_0855C5BC
.4byte gUnknown_0855C5C4
.4byte gUnknown_0855C5CC
.4byte gUnknown_0855C5D4
.align 2
gUnknown_0855C5EC:: @ 855C5EC gUnknown_0855C5EC:: @ 855C5EC
.incbin "baserom.gba", 0x55c5ec, 0x18 spr_template 0xffff, 0x111a, gOamData_855C218, gUnknown_0855C5DC, gUnknown_0855C59C, gDummySpriteAffineAnimTable, sub_80B9DB8

Binary file not shown.

After

Width:  |  Height:  |  Size: 184 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 159 B

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 157 B

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 143 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 B

BIN
graphics/misc/spotlight.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 312 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

@ -481,3 +481,6 @@ $(pknvoptionsdir)/options.4bpp: $(pknvoptionsdir)/hoenn_map.4bpp \
$(pknvdir)/header.4bpp: %.4bpp: %.png $(pknvdir)/header.4bpp: %.4bpp: %.png
$(GFX) $< $@ -num_tiles 53 $(GFX) $< $@ -num_tiles 53
$(unusedgfxdir)/intro_birch_beauty.4bpp: %.4bpp: %.png
$(GFX) $< $@ -num_tiles 374