Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PRE-BATTLE MUG #93

Open
eMMe97 opened this issue Jan 18, 2022 · 1 comment
Open

PRE-BATTLE MUG #93

eMMe97 opened this issue Jan 18, 2022 · 1 comment

Comments

@eMMe97
Copy link

eMMe97 commented Jan 18, 2022

In the first routine the checks doesn't work. If the third byte is not 0x0, it will not "pretend" to be champion class and load as if it was a champion battle.
I know a little about asm and have tried this change to your routine

.thumb
.align 2

main:
ldrb r5, [r4, #0x3]
lsl r5, r5, #0x18
lsr r5, r5, #0x18
cmp r5, #0x0
bne normale
mov r1, #0x28
mov r3, r1
mul r3, r2, r3
ldr r2, =(0x800fc00)
ldr r5, =(0x09b4c18c+1)
bx r5

normale:
ldr r5, =(0x9b4c1f0+1)
bx r5

.align 2

With this modification the function works perfectly.

@SWHSmash
Copy link

Can't confirm this now, but when this works flawless, maybe you can also create a pull request for this issue. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants