• 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.
  • 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!
  • Cyndy, May, Hero (Conquest), or Wes - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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✓] call asm from asm routine

  • 25
    Posts
    7
    Years
    • Seen Apr 18, 2020
    is calling asm from asm routine possible, i mean in scripting we use callasm is it possible in compiling asm?
     
    Or maybe you'll want "BL{condition} <address>" so that the CPU knows where to return to (or I guess you could manually set the LR before branching)?

    Anyway, I'm just guessing based on GBATEK, Althurdinok probably knows better than I do :)

    I'm new to asm as well :D. That's proper that BL is more often used. {condition} of branch includes L, XL, X, EQ, NE, etc.
    BL provides return,
    BX allows switching between arm and thumb mode....
    All these can be found by searching for documents on ARM instruction, though I just can't master them all now. :)
     
    Back
    Top