Post subject: need a little help with memory search/viewing
Active player (278)
Joined: 5/29/2004
Posts: 5712
Okay, I was hoping to try some of this "monitor subpixel position and velocity" stuff like all the cool people, and I think I've got the hang of using the cheat search now, but I'm running into trouble finding all of the addresses I want to look at in the memory viewer. See, some of the addresses the cheat search comes up with are like "00:cf78", while others are like "01:c722". I think the 00: addresses are what I can view in the memory logger already, but how do I get to the 01: ones? Is there a bank switch or something I have to do? Because the memory viewer only allows 4 digits for addresses, and the addresses I'm finding at C000 seem to be sprite placement memory rather than actual character manipulation stuff. Well, if you can answer that or offer any extra tips, let me know!
put yourself in my rocketpack if that poochie is one outrageous dude
Post subject: Re: need a little help with memory search/viewing
Emulator Coder, Skilled player (1301)
Joined: 12/21/2004
Posts: 2687
The 01 does mean it's in a different bank, but I think you can usually get away with ignoring the bank number, and still find the same value in the memory viewer based on the 4-digit address, even if the bank number is 01. From what I can tell from looking at the cheat search dialog code, the most the bank number could mean is that you might need to change the first digit of the address to something else (such as converting 01:c722 to d722 instead of c722) in order to locate it in the memory viewer. But, I've never seen a case where that was necessary.
Active player (278)
Joined: 5/29/2004
Posts: 5712
Okay, I'll try that. Is there anything I should know about looking for floating-point values?
put yourself in my rocketpack if that poochie is one outrageous dude
Emulator Coder, Skilled player (1301)
Joined: 12/21/2004
Posts: 2687
Bag of Magic Food wrote:
Is there anything I should know about looking for floating-point values?
You should know that they're probably not floating point values. Even GBA games use fixed point instead (usually, if not always). If there's a fractional component at all, it's probably just stored as an integer in a separate byte somewhere nearby the non-fractional one.
Active player (278)
Joined: 5/29/2004
Posts: 5712
Oh, yeah, heh, I just tend to use the term "floating point" for any fractions in computers. But I did notice that, for example, the fractional part of the vertical position isn't right next to the whole number, and there tend to be several numbers for position because the game has to keep track of various parts of the character's body. I've also been having trouble locating health point values in this one game, although now that I think about it, what I should really be looking for is whatever timer the game uses to keep an enemy temporarily invincible after a hit.
put yourself in my rocketpack if that poochie is one outrageous dude