mirror of
https://github.com/wiiu-env/haxchi.git
synced 2024-11-19 22:59:14 +01:00
42 lines
889 B
ArmAsm
42 lines
889 B
ArmAsm
|
.create "haxchi.srl", 0
|
||
|
.nds
|
||
|
|
||
|
hax_target_address equ 0x107968AC
|
||
|
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 0xEBBC0E00 + code_target_address ; ARM9 ram_address
|
||
|
.word arm9_data_end - arm9_data ; ARM9 size
|
||
|
.word arm7_data ; ARM7 rom_offset
|
||
|
.word 0x2000000 ; ARM7 entry_address
|
||
|
.word 0xEBBC0E00 + hax_target_address ; ARM7 ram_address
|
||
|
.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
|