haxchi/haxchi.s

42 lines
889 B
ArmAsm
Raw Normal View History

2016-11-07 02:11:18 +01:00
.create "haxchi.srl", 0
.nds
hax_target_address equ 0x1076FAA4
2016-11-07 02:11:18 +01:00
code_target_address equ (0xF4000000 + 0xFD2000)
.org 0x000
.ascii "HAXCHI" ; Game Title
.org 0x00C
.ascii "HAXX" ; Gamecode
.ascii "01" ; Makercode
.byte 0x00 ; Unitcode
.org 0x020
.word arm9_data ; ARM9 rom_offset
.word 0x20000000 ; ARM9 entry_address
.word 0xEBDDFC00 + code_target_address ; ARM9 ram_address
2016-11-07 02:11:18 +01:00
.word arm9_data_end - arm9_data ; ARM9 size
.word arm7_data ; ARM7 rom_offset
.word 0x2000000 ; ARM7 entry_address
.word 0xEBDDFC00 + hax_target_address ; ARM7 ram_address
2016-11-07 02:11:18 +01:00
.word arm7_data_end - arm7_data ; ARM7 size
.org 0x080
.word total_size ; Total Used ROM size
.word 0x4000 ; ROM Header Size
.org 0x8000
arm9_data:
.incbin "haxchi_rop.bin"
arm9_data_end:
.align 0x1000
arm7_data:
.incbin "haxchi_rop_hook.bin"
arm7_data_end:
total_size:
.Close