• 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.
  • Dawn, Gloria, Juliana, or Summer - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • 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.

[ASM & Hex] Port this FR script please

  • 46
    Posts
    10
    Years
    • Seen Nov 6, 2024
    Not sure how to open pokemon emerald in ASM

    Also, I would like JPAN's MultiChoice script ported please. Thank you.


    .align 2
    .thumb

    /*Special 0x25 fetches the pointer stored by LoadPointer,
    that is kept in the wram position 0x03000f14 and places it
    on the slot indicated by 0x8006.*/

    special_25: push {r0-r3, lr}
    ldr r3, var_8006
    ldrh r1, [r3]
    ldr r0, pointer
    ldr r0, [r0]
    ldr r2, Text_location2
    cmp r1, #0x6
    bgt end_25
    lsl r1, r1, #0x3
    add r2, r2, r1
    str r0, [r2]
    end_25: pop {r0-r3, pc}

    var_8006: .word 0x020370c4
    Text_location2: .word 0x0203f4a0
    pointer: .word 0x03000E40
     
    Back
    Top