Exporting Memory as defb statements to .asm

The place for codemasters or beginners to talk about programming any language for the Spectrum.
Post Reply
User avatar
uglifruit
Manic Miner
Posts: 700
Joined: Thu Jan 17, 2019 12:41 pm
Location: Leicester
Contact:

Exporting Memory as defb statements to .asm

Post 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?
CLEAR 23855
Alone Coder
Manic Miner
Posts: 401
Joined: Fri Jan 03, 2020 10:00 am

Re: Exporting Memory as defb statements to .asm

Post 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
User avatar
g0blinish
Manic Miner
Posts: 281
Joined: Sun Jun 17, 2018 2:54 pm

Re: Exporting Memory as defb statements to .asm

Post by g0blinish »

Image

or try gui version (:
bin2inc
User avatar
uglifruit
Manic Miner
Posts: 700
Joined: Thu Jan 17, 2019 12:41 pm
Location: Leicester
Contact:

Re: Exporting Memory as defb statements to .asm

Post 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.
CLEAR 23855
Post Reply