• 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] My first asm code. Please peer review.

  • 82
    Posts
    7
    Years
    Trying to teach myself assembly. I know for a fact some syntax is wrong. I'm writing this on mobile so don't hate me lol

    With that said, I know these won't work. I haven't tested them but no way my first try works.

    I've made 3 small routines. They are all ai scripting commands(think like adding commands to bsp but a different table).

    Routine 1 - Addition
    Usage: If the ai has mega launcher, calculate the added damage so it can decide what really is the most powerful move.

    Spoiler:


    Routine 2 + 3 branch with link
    Usage: Jump to address to run a script function but come back when done. Makes scripting more modular. Requires 1 function to end with branch start and the called function to end with branch end.

    Spoiler:
     
    Last edited:
    Back
    Top