First post, by doshea
- Rank
- Member
Hi all,
I would like to contribute a patch for the debugger, but the "Patches" forum only allows posting by moderators.
My patch provides the following functions:
1. The F3 key re-enters the previous command, just like in the COMMAND shell. No moving back and forth in the history though, sorry!
2. A new "MCBS" command which shows information about Memory Control Blocks, like running a "MEM /C" command but a bit lower level:
47474293: MISC:MCB Seg Size (bytes) PSP Seg (notes) Filename
47474293: MISC:Conventional memory:
47474293: MISC: 0158 16 0008 (DOS)
47474293: MISC: 015A 64 0000 (free)
47474293: MISC: (data addr 015B:0008 is 8 bytes past this MCB)
47474293: MISC: 015F 256 0040
47474293: MISC: 0170 192 017E
47474293: MISC: 017D 130688 017E INSTALL
47474293: MISC: 2166 272 017E INSTALL
47474293: MISC: 2178 576 017E INSTALL
47474293: MISC: 219D 752 017E INSTALL
47474293: MISC: 21CD 516880 0000 (free)
47474293: MISC:Upper memory:
47474293: MISC: 9FFF 196608 0008 (DOS) SC
47474293: MISC: D000 65520 0000 (free)
I used this new command to help me write a TSR-like wrapper which logs some data from within a game's memory. Since I had to manually work out which MCB the data was in, I also added the following feature to this command:
If your "Data Overview" is pointing to an address which lies within an MCB, the output will indicate the offset of the address within the MCB:
DEBUG: Set data overview to 015B:0008
22786822: MISC:MCB Seg Size (bytes) PSP Seg (notes) Filename
22786822: MISC:Conventional memory:
22786822: MISC: 0158 16 0008 (DOS)
22786822: MISC: 015A 64 0000 (free)
22786822: MISC: (data addr 015B:0008 is 8 bytes past this MCB)
[...]
How should I go about submitting this patch?
Thanks in advance,
David