- 18
- Posts
- 11
- Years
- Seen May 14, 2023
I've been following HackMews guide to ASM and I've got it to work.
(https://www.pokecommunity.com/threads/117917#ASM1)
But now I'm trying to make an ASM routine to show me the trainer id, so I've used the RAM map to find the trainer ID is in the location '[0x0300500C] + 0x000A' and that its not a half word like the secret ID is.
So I updated the ASM routine to have 'ldr r0, [r0, #0xA]' instead of 'ldrh r0, [r0, #0xC]' because its no longer a halfword, and I also updated the line after to use 'str' instead of 'strh' for the same reason.
It tells me the value 0x0000000A is too big... although this is smaller than 0xC, so I'm a bit stuck.
(https://www.pokecommunity.com/threads/117917#ASM1)
But now I'm trying to make an ASM routine to show me the trainer id, so I've used the RAM map to find the trainer ID is in the location '[0x0300500C] + 0x000A' and that its not a half word like the secret ID is.
So I updated the ASM routine to have 'ldr r0, [r0, #0xA]' instead of 'ldrh r0, [r0, #0xC]' because its no longer a halfword, and I also updated the line after to use 'str' instead of 'strh' for the same reason.
It tells me the value 0x0000000A is too big... although this is smaller than 0xC, so I'm a bit stuck.
Last edited: