• 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!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll here!
  • Red, Hilda, Paxton, or Kellyn - 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] Safe temporary variables

  • 37
    Posts
    7
    Years
    • Seen May 20, 2021
    Hello, I'm writing a program in ASM and I need many variables for this program exclusively. I know that variables from 0x8000 to 0x8007 are safe, I'm pretty sure of that but are there more variables ? Can I use variable 0x8008 ? How many variables (adresses) can I use in an ASM program, for a temporary usage ?
     
    Hello, I'm writing a program in ASM and I need many variables for this program exclusively. I know that variables from 0x8000 to 0x8007 are safe, I'm pretty sure of that but are there more variables ? Can I use variable 0x8008 ? How many variables (adresses) can I use in an ASM program, for a temporary usage ?

    if you're not looking to interact with a script, then there's no reason to use a variable at all when you could just use free ram space
     
    I am working with a script. And I'm looking for free ram space, but I don't know where to write. I need to know where it is safe to write data. Variable = ram space, it's basically the same thing, it's memory.
     
    Back
    Top