• 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!
  • Our weekly protagonist poll is now up! Vote for your favorite Conquest protagonist in the poll by clicking here.
  • 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 Workshop

There you go, FBI-o-nacci!

Task 1:
Spoiler:


Task 2:
Spoiler:


Task 3:
Spoiler:


Challenge:
Spoiler:


i have tested all of them and they worked fine for me, except for that issue with task 1.
Is there any way to store bigger values into registers?
 
Nah, the register isn't actually the problem. A register is able to hold values up to 0xFFFFFFFF. However, since the var you're storing the result in is only a halfword (up to 0xFFFF), the highest Fibonacci number it can hold is the 24th: 46368, because the next one would be 75025, or 0x12511, which is more than a halfword.
 
the link is explaining how to load values bigger than 0xff to a register.
i want to make a register hold values like the 36th fibonacci number (0xE3D1B0)

Can variables ony hold halfwords or can we store word to them as well?

They only hold halfwords. However, you could use two vars to store a word, it'd just require a small rewrite of commands like buffernumber and compare.
 
Last edited by a moderator:
Stuff like this would be nice to cover in a future lesson. Lets keep it simple now and accept the limitation.
 
Last edited:
Back
Top