Skip to content

Commit

Permalink
Move old, unused header to data
Browse files Browse the repository at this point in the history
  • Loading branch information
JaceCear committed Jan 31, 2025
1 parent b393220 commit e0f382d
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 68 deletions.
68 changes: 0 additions & 68 deletions asm/rom_header_old.s

This file was deleted.

57 changes: 57 additions & 0 deletions data/rom_header_old.s
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
.include "asm/macros.inc"
.include "constants/constants.inc"

.syntax unified
.arm

@ The developers left an additional header inside the ROM,
@ using a different publisher ID.

@@ _entry_old: @ 0x08000000
@@ b _rom_header_old_end
@@
@@ @ These will be set by gbafix
@@
@@ .global RomHeaderNintendoLogo_old
@@ RomHeaderNintendoLogo_old:
@@ .space 0x9c
@@
@@ RomHeaderGameTitle_old:
@@ .space 12
@@
@@ RomHeaderGameCode_old:
@@ .4byte 0
@@
@@ RomHeaderMakerCode_old:
@@ .2byte 0
@@
@@ RomHeaderMagic_old:
@@ .byte 0x96
@@
@@ RomHeaderMainUnitCode_old:
@@ .byte 0
@@
@@ RomHeaderDeviceType_old:
@@ .byte 0
@@
@@ RomHeaderReserved1_old:
@@ .space 7
@@
@@ RomHeaderSoftwareVersion_old:
@@ .byte 0
@@
@@ RomHeaderChecksum_old:
@@ .byte 0
@@
@@ RomHeaderReserved2_old:
@@ .space 2
@@
@@ _rom_header_old_end:

@ Temp copy-paste
arm_func_start sub_800032C
_0800032C:
b header_copy_end @; here + header size
_08000340:
.incbin "baserom.gba", 0x330, 0xBC
header_copy_end:

0 comments on commit e0f382d

Please sign in to comment.