Gun.Rugger
Smash Cadet
- Joined
- Jan 2, 2016
- Messages
- 26
I am very new to ASM, but not new to programming. I am about to start writing a mod, and I think I have all the injection point memory addresses and most of the ASM code figured out. I have one major question.
How do I carve out space in memory safely to store variables?
I have 16 variables that need to be stored and referenced (4 for each player), and I need them to be at least 8 bits (they need to be a value of 0-99).
Ideally, I could find an area in memory that isn't used like 81xxxx00-81xxxxFF, so that I could do something like
Player 1:
81xxxx00
81xxxx01
81xxxx02
81xxxx03
Player 2:
81xxxx10
81xxxx11
81xxxx12
81xxxx13
etc.
A situation I would like to avoid if possible would be addresses that are scattered all about, but I could still make that work. It would just suck a bit.
Keep in mind that I would like this mod to be able to run on the wii, and am not sure if there are memory restrictions that will get in the way.
Thanks ahead of time! You are all very powerful wizards, and I hope to achieve a small portion of your power.
How do I carve out space in memory safely to store variables?
I have 16 variables that need to be stored and referenced (4 for each player), and I need them to be at least 8 bits (they need to be a value of 0-99).
Ideally, I could find an area in memory that isn't used like 81xxxx00-81xxxxFF, so that I could do something like
Player 1:
81xxxx00
81xxxx01
81xxxx02
81xxxx03
Player 2:
81xxxx10
81xxxx11
81xxxx12
81xxxx13
etc.
A situation I would like to avoid if possible would be addresses that are scattered all about, but I could still make that work. It would just suck a bit.
Keep in mind that I would like this mod to be able to run on the wii, and am not sure if there are memory restrictions that will get in the way.
Thanks ahead of time! You are all very powerful wizards, and I hope to achieve a small portion of your power.