Is there a disassembler that can send it's output to a text file? Or does anyone know of a way of doing this? I'd like to be able to disassemble a chunk of code and view the whole thing in an editor afterwards instead of repeatedly processing small chunks on screen. Preferably on a real CPC but an emulator would do! Cheers.
Quote from: Richard_Lloyd on 23:13, 13 December 20Is there a disassembler that can send it's output to a text file
Any PC disassembler can do that. Check "Disark" in my signature, it can produce the output in a variety of assembler. It is cross-platform, so obviously not on a real CPC if you can live with this limitation.
Thanks, I'll take a look.
Quote from: Richard_Lloyd on 23:13, 13 December 20
Is there a disassembler that can send it's output to a text file? Or does anyone know of a way of doing this? I'd like to be able to disassemble a chunk of code and view the whole thing in an editor afterwards instead of repeatedly processing small chunks on screen. Preferably on a real CPC but an emulator would do! Cheers.
Or you can do it using WinAPE (http://www.winape.net/).
1) Run the program you want to disassemble and then press the pause button.
2) Select the area of memory you want to disassemble in the Debugger by clicking on the first address, then hold SHIFT and click on the second address.
3) Right click, Disassemble, choose File as output.
It's a piece of ROM code. Can I just load it in without running it and disassemble in situ. I've not used WinAPE very much but I'll give this a try as well.
Thanks.
Quote from: Richard_Lloyd on 12:30, 14 December 20
It's a piece of ROM code. Can I just load it in without running it and disassemble in situ. I've not used WinAPE very much but I'll give this a try as well.
Yes, just load into memory from BASIC, e.g:
MEMORY &3FFF : LOAD "ROM.BIN",&4000
Quote from: Targhan on 23:39, 13 December 20
Any PC disassembler can do that. Check "Disark" in my signature, it can produce the output in a variety of assembler. It is cross-platform, so obviously not on a real CPC if you can live with this limitation.
Disark works really well.
I did a couple of runs with different parameters to see what effect they had and soon had some working code.
I don't have a symbol table so had to do a bit of manual editing but it does the job.
Thank you.
Quote from: Richard_Lloyd on 22:21, 14 December 20Disark works really well.
Glad to hear that!
You may not have a symbol table, yet you can create one by hand (the format is very permissive) and feed it to Disark. It can save you some time instead of manually modifying your source.