• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Script] need help reading this effect asm

Black_Fragrant

Finishing up my Firegold
  • 125
    Posts
    6
    Years
    i ve just learned how to compile, now that i can, i tried putting this in my rom, but simply following it gives me a freeze.
    how do i adjust it to fit my own rom?

    .text
    .align 2
    .thumb
    .thumb_func
    .global freezedry1

    Main:

    cmp r4, #0xB
    bne RegularChart
    ldr r1, .currMove
    ldrh r1, [r1]
    ldrh r0, .freezeDryIndex
    cmp r0, r1
    bne RegularChart
    mov r0, #0x14
    b Exit

    RegularChart:
    add r0, r3, #0x2
    add r0, r0, r5
    ldrb r0, [r0, #0x0]
    str r2, [sp, #0x0]

    Exit:
    ldr r1, =0x0801E979
    bx r1

    .align 2
    .currMove: .word 0x02023D4A
    .freezeDryIndex: .hword 0x00B5

    @1E970: 00 49 08 47 XX+1 XX XX 08
     
    If I remember clearly, the routine for Freeze Dry effect requires you to change the value 0x00B5 from the routine to the move index of Freeze Dry move on your hack and then compile and insert the routine to an aligned free space offset (Ends with 0 4 8 or C) and insert the hook at 0x1E970 (The XX+1 means you need to add 1 to the offset where you put the compiled routine)
     
    Back
    Top