Page 1 of 1

Exporting Memory as defb statements to .asm

Posted: Sun Jan 05, 2020 11:49 am
by uglifruit
Probably a daft question....

I've recently re-installed and migrated a load of things to new computer (Windows), and I can't remember how on earth I was doing the following:

Running Spectrum software in emulator (I have Spectaculator and ZXSpin, so I was probably using one or the other...)
Then dumping a part of the memory as a .asm file, with the memory as defb statements.

I recall that it might have been a two stage process, with me copy and pasting stuff. (Maybe dump to .bin, then import a .bin into *something* and turning that into db statement)


Any ideas?

Re: Exporting Memory as defb statements to .asm

Posted: Sun Jan 05, 2020 3:43 pm
by Alone Coder
In Unreal Speccy: go to the debugger, press Alt+W and type in the filename and memory margins.
Then do:
nedodefb.exe file.bin file.asm label 6144 768
6144 is the starting shift in your .bin, 768 is size.
You can take nedodefb from the sources of Space Monsters meet THE HARDY: http://alonecoder.nedopc.com/zx/hardysrc.zip

Re: Exporting Memory as defb statements to .asm

Posted: Sun Jan 05, 2020 4:09 pm
by g0blinish
Image

or try gui version (:
bin2inc

Re: Exporting Memory as defb statements to .asm

Posted: Sun Jan 05, 2020 4:21 pm
by uglifruit
Alone Coder wrote: Sun Jan 05, 2020 3:43 pm nedodefb.exe file.bin file.asm label 6144 768
6144 is the starting shift in your .bin, 768 is size.
Thank you so much - nedodefb is EXACTLY the kind of tool I was looking for.