I would like you to be my ASM Teacher, I have read JPANS tutorial and I got new knowledge and headaches.
.align 2
.thumb
main:
push {r0-r2,lr}
ldr r1, var
ldrb r1, [r1]
mov r0, #0x64
mul r0, r0, r1
mov r2, r0
ldr r0, OTID
ldrh r0, [r0, #0x4]
strh r0, [r2]
pop {r0-r3,pc}
var:
.word 0x20270B8 + (0x8000 *2)
OTID
.word 0x2024284
I know its an error, but I want when Var 0x8000 has been set to 0-5, it shows the Original Trainer ID of a Pokemon... dont fix it, just tell to me whether my routine is error or not. thanks
TRIED and RESTED, it doesn't work lol