ScripNewbie
Mystc Creator
- 38
- Posts
- 4
- Years
- Seen Jan 27, 2023
I don't understand your question, sorry. D:
Can you elaborate a little more?
Thanks Spacewalker for responding!
What i mean is, Asm that calls a script
Example: the script is in offset 0x8850001 and i wanna call it via asm.
My attempt on this is:
Spoiler:
.text
.align 2
.thumb
.thumb_func
main:
push {r0, r1, lr}
ldr r0 =(0x8850001)
ldr r1 =(0x20370D0)
add r0, r0, r1
strh r1, r0, r1
pop {r0, r1, lr}
.align 2
I don't know if it's right, I only have a little bit of knowledge on asm :(
but it compiles perfectly fine in cmd, but when i use callasm 0x8860001(where i put the asm) it didn't call the script in 0x8850001
.align 2
.thumb
.thumb_func
main:
push {r0, r1, lr}
ldr r0 =(0x8850001)
ldr r1 =(0x20370D0)
add r0, r0, r1
strh r1, r0, r1
pop {r0, r1, lr}
.align 2
I don't know if it's right, I only have a little bit of knowledge on asm :(
but it compiles perfectly fine in cmd, but when i use callasm 0x8860001(where i put the asm) it didn't call the script in 0x8850001