kenobi wrote:
Just posted NDS AR HACK #4 : Execute custom asm routine.
Here is a concrete exemple on how it works, tested on the real HW, for Super Mario 64 DS (ASMEN1J12 / 1J22) :
023FE074 E3520003 // first part
E2098930 00000004
00000001 00000000
94000130 FCFF0000 // second part
023FE074 012FFF31
E0000000 00000014
E59F0008 E3A02063
E5802000 E12FFF1E
02098930 00000000
D2000000 00000000
The first part of this code is the 'normal' E code type, that will copy 00000001 to the address where the lives are stored.
So you get one life.
The second part of the code uses the hack I made.
When L+R are pressed, it will execute the following ASM code :
E59F0008 // ldr r0,=02098930h
E3A02063 // mov r2,63h
E5802000 // str r2,[r0]
E12FFF1E // bx r14
02098930 // (data used by the first instruction)
which gives you 99 (63h) lives.
hello,i am trying to understand and use ar codes and asm with it.i have trying using this code on my ds,(i use TTDS card,i have mario ds original cartidge and this for homebrew,and because it has ar chat ,i use also for experiment with cheats.
After several attempts ,and i thought maybe this card only support normal ar cheats and doent this kind of chats (executing asm) ,i was able to make it run.
The version is EU .
And this is the code:
023FE074 E3520003
E2098930 00000004 //02098930 is memory region for lives in eu cartidge
00000001 00000000
023FE074 012FFF11
94000130 FFF30000 //it does not run
E0000000 00000014
E59F0008 E3A02063
E5802000 E12FFF1E
02098930 00000000 //02098930 is memory region for lives in eu cartidge
D2000000 00000000
0209F2F4 00000063
I dont understand why you put 023FE074 012FFF31 if according your info is 11,altough it works also
and can you explain what do the two last lines,if i dont use ,it doesnt run,but it is suppoused the code ends when you freeze the hack and finish with the data used by the first instruction
The patch key also doesnt work,i use also the r4cce editor and add it with it ,but the code runs without press the key