VOGONS


First post, by popcalent

User metadata
Rank Newbie
Rank
Newbie

I'm trying to use the Dosbox-x (2026.08.02 for Linux, compiled from sources) debugger to patch a game for infinite energy. I start with 30 energy bars, and every time I touch an enemy I lose bars. The idea is finding what instruction in the game does the decrement.

I start the game, then I start the debug, and start a search with:
MEMFIND 0000:0000 A0000 W (I also tried with B)
This creates a search. Then I do "MEMS = 30" and it says it found a number of locations. I take damage and do "MEMS <", and it narrows it down but it doesn't show the memory locations. I keep taking damage until it narrows it down to one location and still doesn't tell me the location. It just says this:
DEBUG: (000001) addresses matching LESS THAN their previous values. Iterations: 000002

My idea was to find the location where that value is stored, then figure out how to find the instruction that decrements that location, but I'm stuck with this... How can I make debugger show me the location?

Reply 1 of 2, by jakethompson1

User metadata
Rank l33t
Rank
l33t

Just to get the obvious out of the way, you are sure this is a plain real-mode DOS game, as opposed to a DOS-extended (eg DOS/4GW) one?

Reply 2 of 2, by popcalent

User metadata
Rank Newbie
Rank
Newbie
jakethompson1 wrote on Today, 03:15:

Just to get the obvious out of the way, you are sure this is a plain real-mode DOS game, as opposed to a DOS-extended (eg DOS/4GW) one?

Yes.