-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
156 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
.org 0x020BD324 | ||
.rorg 0x020BD324,0x020BD344 | ||
bl dpad_check_roll | ||
.org 0x020bcf5C | ||
.rorg 0x020BCF5C,0x020BCF7C | ||
bl dpad_check_spin | ||
;eof | ||
;eof |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,45 @@ | ||
.nds | ||
.relativeinclude on | ||
|
||
;edit the ARM9 | ||
.open "arm9_original.bin","arm9_compressed.bin", 0x02004000 | ||
.include macros.asm | ||
.include "macros.asm" | ||
|
||
;edit the ARM9 | ||
;uncompressed sizes: 0x48DD8,0x048DF8 | ||
.ropen "arm9_original.bin","arm9_compressed.bin",0x02004000,0x02004000 | ||
;end of ARM9 freespace | ||
.org 0x02044B00 | ||
.rorg 0x02044B00,0x02044AD0 | ||
.area 0x288 | ||
.include util.asm | ||
.include movement/movement_arm9_freespace.asm | ||
.include interact/interact_arm9_freespace.asm | ||
.include attack/attack_arm9_freespace.asm | ||
.include "util.asm" | ||
.include "movement/movement_arm9_freespace.asm" | ||
.include "interact/interact_arm9_freespace.asm" | ||
.include "attack/attack_arm9_freespace.asm" | ||
.pool | ||
.endarea | ||
.close | ||
|
||
;edit the overlay0000 (contains code for sword attacks) | ||
;uncompressed size: 0x633E0 | ||
.open "overlay_0000_original.bin","overlay_0000_compressed.bin",0x02051AC0 | ||
.include attack/attack_overlay0000.asm | ||
;uncompressed sizes: 0x633E0,0x633E0 | ||
.ropen "overlay_0000_original.bin","overlay_0000_compressed.bin",0x02051AC0,0x02051AE0 | ||
.include "attack/attack_overlay0000.asm" | ||
.close | ||
|
||
;edit the overlay0017 (contains code for movement from pressing on the screen) | ||
;uncompressed size: 0x8900 | ||
.open "overlay_0017_original.bin","overlay_0017_compressed.bin",0x020BB640 | ||
.include movement/movement_overlay0017.asm | ||
.include interact/interact_overlay0017.asm | ||
.include attack/attack_overlay0017.asm | ||
;uncompressed sizes: 0x8900,0x8900 | ||
.ropen "overlay_0017_original.bin","overlay_0017_compressed.bin",0x020BB640,0x020BB660 | ||
.include "movement/movement_overlay0017.asm" | ||
.include "interact/interact_overlay0017.asm" | ||
.include "attack/attack_overlay0017.asm" | ||
.close | ||
|
||
;edit the overlay0024 (contains code for pressing directions to do UI functions during gameplay) | ||
;uncompressed size: 0x13E20 | ||
.open "overlay_0024_original.bin","overlay_0024_compressed.bin",0x020C4820 | ||
.include movement/movement_overlay0024.asm | ||
;uncompressed sizes: 0x13E20,0x13E20 | ||
.ropen "overlay_0024_original.bin","overlay_0024_compressed.bin",0x020C4820,0x020C4840 | ||
.include "movement/movement_overlay0024.asm" | ||
.close | ||
|
||
;edit the overlay0093 (contains code for pressing directions for zelda phantom) | ||
;uncompressed size: 0x134C0 | ||
.open "overlay_0093_original.bin","overlay_0093_compressed.bin",0x02165880 | ||
.include movement/movement_overlay0093.asm | ||
;uncompressed sizes: 0x134C0 | ||
.ropen "overlay_0093_original.bin","overlay_0093_compressed.bin",0x02165880,0x021658A0 | ||
.include "movement/movement_overlay0093.asm" | ||
.close | ||
;eof |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
.org 0x020BE4E4 | ||
.rorg 0x020BE4E4,0x020BE504 | ||
bl dpad_check_interact | ||
;eof | ||
;eof |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,83 @@ | ||
;Regions | ||
REGION_US equ 0 | ||
REGION_EU equ 1 | ||
|
||
;KeyPad Macros | ||
GBAKEY_A equ 1<<0 | ||
GBAKEY_B equ 1<<1 | ||
GBAKEY_SELECT equ 1<<2 | ||
GBAKEY_START equ 1<<3 | ||
GBAKEY_RIGHT equ 1<<4 | ||
GBAKEY_LEFT equ 1<<5 | ||
GBAKEY_UP equ 1<<6 | ||
GBAKEY_DOWN equ 1<<7 | ||
GBAKEY_R equ 1<<8 | ||
GBAKEY_L equ 1<<9 | ||
DSKEY_X equ 1<<10 | ||
DSKEY_Y equ 1<<11 | ||
;eof | ||
GBAKEY_A equ 1<<0;0x01 | ||
GBAKEY_B equ 1<<1;0x02 | ||
GBAKEY_SELECT equ 1<<2;0x04 | ||
GBAKEY_START equ 1<<3;0x08 | ||
GBAKEY_RIGHT equ 1<<4;0x10 | ||
GBAKEY_LEFT equ 1<<5;0x20 | ||
GBAKEY_UP equ 1<<6;0x40 | ||
GBAKEY_DOWN equ 1<<7;0x80 | ||
GBAKEY_DIRECTION equ 0xF0; | ||
GBAKEY_R equ 1<<8;0x100 | ||
GBAKEY_L equ 1<<9;0x200 | ||
DSKEY_X equ 1<<10;0x400 | ||
DSKEY_Y equ 1<<11;0x800 | ||
|
||
;Sets the output pointer depending on the game region | ||
.macro .rorg,us_offset,eu_offset | ||
.if current_region == REGION_US | ||
.org us_offset | ||
.elseif current_region == REGION_EU | ||
.org eu_offset | ||
.endif | ||
.endmacro | ||
|
||
;Open depending on the game region | ||
.macro .ropen,original_file,output_file,us_offset,eu_offset | ||
.if current_region == REGION_US | ||
.open original_file,output_file,us_offset | ||
.elseif current_region == REGION_EU | ||
.open original_file,output_file,eu_offset | ||
.endif | ||
.endmacro | ||
|
||
;Branches depending on game region | ||
.macro rbl,us_offset,eu_offset | ||
.if current_region == REGION_US | ||
bl us_offset | ||
.elseif current_region == REGION_EU | ||
bl eu_offset | ||
.endif | ||
.endmacro | ||
|
||
;Branches depending on game region | ||
.macro rbne,us_offset,eu_offset | ||
.if current_region == REGION_US | ||
bne us_offset | ||
.elseif current_region == REGION_EU | ||
bne eu_offset | ||
.endif | ||
.endmacro | ||
|
||
;Branches depending on game region | ||
.macro rbeq,us_offset,eu_offset | ||
.if current_region == REGION_US | ||
beq us_offset | ||
.elseif current_region == REGION_EU | ||
beq eu_offset | ||
.endif | ||
.endmacro | ||
|
||
;loads value to register depending on game region | ||
.macro rldr,reg,us_offset,eu_offset | ||
.if current_region == REGION_US | ||
ldr reg,=us_offset | ||
.elseif current_region == REGION_EU | ||
ldr reg,=eu_offset | ||
.endif | ||
.endmacro | ||
|
||
;loads value to register depending on game region | ||
.macro rldrne,reg,us_offset,eu_offset | ||
.if current_region == REGION_US | ||
ldrne reg,=us_offset | ||
.elseif current_region == REGION_EU | ||
ldrne reg,=eu_offset | ||
.endif | ||
.endmacro | ||
|
||
;eof |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
.org 0x020BE550 | ||
.rorg 0x020BE550,0x020BE570 | ||
bl dpad_movement | ||
;eof | ||
;eof |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
.org 0x020C5980;replace pressing right for quick menu | ||
.rorg 0x020C5980,0x020C59A0;replace pressing right for quick menu | ||
ldrh r0, [r0,0x20] | ||
bl quickmenu_check_buttons | ||
beq 0x020C5994 | ||
rbeq 0x020C5994,0x020C59B4 | ||
|
||
.org 0x020C5A04;replace pressing down to bring map down | ||
.rorg 0x020C5A04,0x020C5A24;replace pressing down to bring map down | ||
ldrh r0, [r0,0x20] | ||
bl quickmap_check_buttons | ||
beq 0x020C5A18 | ||
rbeq 0x020C5A18,0x020C5A38 | ||
|
||
.org 0x020C5B18;replace pressing up to check status | ||
.rorg 0x020C5B18,0x020C5B38;replace pressing up to check status | ||
ldrh r0, [r0,0x20] | ||
bl quickstatus_check_buttons | ||
bne 0x020C5BC4 | ||
rbne 0x020C5BC4,0x020C5BE4 | ||
;eof |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
.org 0x0217600C;replace pressing left for zelda controls | ||
.rorg 0x0217600C,0x0217602C;replace pressing left for zelda controls | ||
ldr r0, [r0,0x00] | ||
bl phantom_zelda_check_buttons | ||
bne 0x0217603C | ||
rbne 0x0217603C,0x0217605C | ||
;eof |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.