Thread: [Tutorial] HackMew's Knowledge
View Single Post
Old February 3rd, 2013 (12:37 AM).
Chaos Rush's Avatar
Chaos Rush Chaos Rush is offline
im sexy and i know it
Join Date: May 2007
Location: Taylor Swift
Gender: Male
Nature: Adamant
Posts: 1,296

I decided to take a crack at HackMew's ASM challenge, and I succeeded!

This is what I modified the routine to:

.align 2
.global lesson1

main: push {r0-r1, lr} ldr r0, .PLAYER_DATA ldr r0, [r0] ldr r1, .VAR ldrh r0, [r0, #0xC] strh r0, [r1] ldr r0, .PLAYER_DATA ldr r0, [r0] ldr r1, .NEXT ldrh r0, [r0, #0xA] strh r0, [r1] pop {r0-r1, pc}

.align 2 .PLAYER_DATA: .word 0x0300500C .VAR: .word 0x020270B6 + (0x800D * 2) .NEXT: .word 0x020270B8 + (0x8000 * 2)

And the XSE script:

#dynamic 0x800000
#org @main
callasm YourASMoffset
buffernumber 0x0 LASTRESULT
buffernumber 0x1 0x8000
msgbox @msg MSG_FACE

#org @msg = Your Trainer ID is [buffer2].\nYour Secret ID is [buffer1].

Going to do my best to get ASM down...


My projects:
Untitled Pokémon fangame (pictured above) | Final Fantasy II NES retranslation | Mother 1/EarthBound Beginnings Color Restoration for GBA
Non-Pokémon hacks I support:
Sonic Classic Heroes
Sonic 3 Complete
Reply With Quote