I'm trying to make my own infinite jumps code for Lego Star Wars: The Complete Saga, but I don't understand why it's not working...
The original code only worked for Obi-Wan. It was...
Code:
94000130 FFFD0000
221E1131 00000000
221E1132 00000005
D2000000 0000000
I then worked one out for Qui-Gon and subtracted the addresses to find the offset. The Qui-Gon infinite jumps code I created was...
Code:
94000130 FFFD0000
221F1C41 00000000
221F1C42 00000005
D2000000 00000000
Here's the ASM of the code I need help with:
Code:
ldr r0,=0x0213239E ; Current character.
ldr r1,=0x00010B10 ; Character offset.
ldr r2,=0x021E1131 ; Base character code (Obi-Wan Kenobi (Episode 1)).
ldr r0,[r0] ; r0 = r0 value
add r0,#0xFFFFFFFF ; r0 - 1
mla r4,r0,r1,r2 ; r4 = (r0 x r1) + r2
ldr r3,r4 ; r3 = r4
ldr r5,r4 ; r5 = r4
add r3,#1 ; r3 + 1
ldr r6,=0x00000005 ; r6 = 0x00000005
ldr r7,=0x00000001 ; r7 = 0x00000001
str r6,[r3] ; r3 (value) = r6
str r7,[r5] ; r5 (value) = r7
bx r14 ; necessary
The AR code I'm getting from Kenobi's tool is:
Code:
023FE074 012FFF11
E0000000 00000044
E59F0030 E59F1030
E59F2030 E5900000
E2400001 E0242190
E51F3008 E51F5008
E2833001 E3A06005
E3A07001 E5857000
E5836000 E12FFF1E
0213239E 00010B10
021E1131 00000000
023FE074 E3520003
Which I'm then turning into:
Code:
94000130 FFFD0000
023FE074 012FFF11
E0000000 00000044
E59F0030 E59F1030
E59F2030 E5900000
E2400001 E0242190
E51F3008 E51F5008
E2833001 E3A06005
E3A07001 E5857000
E5836000 E12FFF1E
0213239E 00010B10
021E1131 00000000
023FE074 E3520003
D2000000 00000000
Whenever I jump (with any character), I can only double jump. What am I doing wrong here? I've spent several hours on this and just don't get it.
Anyone have suggestions?
_________________
KhaosKnight1 wrote:
To be honest i was still expecting the next DS to be a "fucked up 3-screened handheld device with a neuro-sensor and a thermal dildo in it".