VOGONS


First post, by Borg Number One

User metadata
Rank Newbie
Rank
Newbie

DOSBOX memdump feature is great, but it is not really easy to convert the [HEX] memdump.txt to [bin] memdump.bin every time.

To convert the HEX-data to bin-data I have to start "open office" and use its "find and replace"-feature to remove the offsets.
Then I have to copy the "HEX"-Text into hexworkshop while "interpret as hexadecimal string" is switched on.

Please insert a feature which makes it possible to dump memory as bin-data to a file too.

e.g.:
memdump 000000:000000 100000 ->"normal way"->memdump.txt
memdump 000000:000000 100000 -b ->"binary way"->memdump.bin

Reply 1 of 3, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

shouldn't be so hard why not try it yourself and submit a patch ?

the code you want/need is in src/debug/debug.cpp:1762

(you only need to change one statement and test it offcourse)

Water flows down the stream
How to ask questions the smart way!

Reply 2 of 3, by Borg Number One

User metadata
Rank Newbie
Rank
Newbie

It is not so easy it seems like to be for you. 😀
I just have MSVC 6.0(produces maaaaany errors while compiling)
So it would be great if the "-b swithc" would be a standard in the next releases of DOSBOX.

Well, there are allready many pages about chiptunes, midis and further ripped classic stuff(tilesets, graphics), but there are still many games which have got unripped stuff.

In this way a binary form of the memory dump is really important.

Reply 3 of 3, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

not sure if dosbox should be your ideal ripping tool
There are other powerfull programs for that.
but change the printf in that function to
sprintf(temp,"%hhc",mem_readb(GetAddress(seg,ofs1+x)));
but okay. who knows.

Water flows down the stream
How to ask questions the smart way!