Skip to content

Commit

Permalink
Optimize arm9 patch size
Browse files Browse the repository at this point in the history
  • Loading branch information
ahezard committed Dec 20, 2016
1 parent e0bacfb commit 30a6493
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cardengine/source/cardEngine.c
Expand Up @@ -55,7 +55,7 @@ void runCardEngineCheck (void) {
initLogging();


if(*(vu32*)(0x027FFB08) == (vu32)0x027FEE04)
if(*(vu32*)(0x027FFB08) == (vu32)0x4000100)
{
dbg_printf("\ncard read received\n");

Expand Down
5 changes: 2 additions & 3 deletions cardengine/source/card_engine_header.s
Expand Up @@ -105,7 +105,6 @@ card_read_arm9:
ldr r7, [R4,#0x8] @LEN;
cmp r7, #512
ldr r8, =0x027FFB08
ldr r1, =0x027FEE04
ldr r2, =0x4000100

blt partial
Expand All @@ -115,7 +114,7 @@ chunck_loop:
str r6, [R8,#0x8]
mov r4, #512
str r4, [R8,#0xC]
str r1, [r8]
str r2, [r8]

@sendIPCSync
LDRH R11, [r2,#0x80]
Expand Down Expand Up @@ -148,7 +147,7 @@ partial:
str r5, [R8,#0x4]
str r6, [R8,#0x8]
str r7, [R8,#0xC]
str r1, [r8]
str r2, [r8]

@sendIPCSync
LDRH R11, [r2,#0x80]
Expand Down

0 comments on commit 30a6493

Please sign in to comment.