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
15 changed files
with
157 additions
and
14 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
.thumb | ||
push {lr} | ||
ldr r0,[r0,#0x7C] | ||
ldrb r0,[r0,#8] | ||
cmp r0,#0x44 | ||
bne vanilla | ||
|
||
ldr r0,=#0x2002EA4 | ||
ldr r1,=#10 | ||
ldr r3,=#0x801D5E0 @vanilla flag check routine | ||
mov lr,r3 | ||
.short 0xF800 | ||
cmp r0,#0 | ||
beq invert | ||
mov r0,#0 | ||
b end | ||
invert: | ||
mov r0,#1 | ||
end: | ||
pop {pc} | ||
|
||
vanilla: | ||
ldr r3,=#0x8029139 | ||
cmp r0,#0x5C | ||
bx r3 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
.thumb | ||
push {lr} | ||
mov r2,r0 | ||
ldrb r1,[r2] | ||
mov r0,#0xFC | ||
and r0,r1 | ||
cmp r0,#0xC | ||
beq goto802919E | ||
|
||
ldrb r0,[r2,#8] | ||
cmp r0,#0x44 | ||
bne vanilla | ||
|
||
ldr r0,=#0x2002EA4 | ||
ldr r1,=#10 | ||
ldr r3,=#0x801D5E0 @vanilla flag check routine | ||
mov lr,r3 | ||
.short 0xF800 | ||
pop {pc} | ||
|
||
goto802919E: | ||
ldr r3,=#0x802919F | ||
bx r3 | ||
|
||
vanilla: | ||
ldr r3,=#0x802917D | ||
bx r3 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
.thumb | ||
push {r4,lr} | ||
mov r4,r0 | ||
mov r0,#0 | ||
mov r1,#6 | ||
strb r1,[r4,#0xC] | ||
mov r1,r4 | ||
add r1,#0x81 | ||
strb r0,[r1] | ||
ldr r0,[r4,#0x7C] | ||
ldrb r0,[r0,#8] | ||
cmp r0,#0x44 | ||
bne end | ||
|
||
ldr r0,=#0x2002EA4 | ||
mov r1,#10 | ||
ldr r3,=#0x801D5F4 @vanilla flag set routine | ||
mov lr,r3 | ||
.short 0xF800 | ||
|
||
end: | ||
ldr r3,=#0x8029215 | ||
bx r3 |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
.thumb | ||
mov r1,r4 | ||
add r1,#0x6A | ||
mov r0,#0x40 | ||
strb r0,[r1] | ||
ldrb r0,[r4,#0x0A] | ||
|
||
ldr r0,=#0x3000BF0 | ||
ldrb r1,[r0,#4] | ||
ldrb r2,[r0,#5] | ||
ldr r3,poin | ||
loop: | ||
ldrb r0,[r3] | ||
cmp r0,#0 | ||
beq noMatch | ||
cmp r0,r1 | ||
bne next | ||
ldrb r0,[r3,#1] | ||
cmp r0,r2 | ||
beq match | ||
next: | ||
add r3,#3 | ||
b loop | ||
|
||
noMatch: | ||
mov r0,#0x40 | ||
b end | ||
|
||
match: | ||
ldrb r0,[r3,#2] | ||
|
||
end: | ||
ldr r3,=#0x809FA7B | ||
bx r3 | ||
|
||
.align | ||
.ltorg | ||
poin: |
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