When I was asked to port Sophistry from speccy to SAM I was given the speccy
source code (devpac format I think) - this however was not the final source
code... So I simply wrote a disassembler to disassemble the original game
binary to Comet source. All CALLs, JPs,JRs and DJNZs were labelled
L<address>, all lines were given a comment with their original address. This
is repeated a few times to figure out which blocks contain graphics or other
non-code, these were then moved out as binary files and MDAT'ed back in.

Since Pang! is a 128k title, the L<address> convention was adjusted to also
use M<address> and N<address> and K<address> for the various original speccy
memory banks. Then its a matter of running through everything, trying to
figure out what does what, change the meaningless L<address> labels to
something meaningful, removing all no longer required address comments.

At any point you should be able to compile he set and run it (in MODE 1).
Now that we have an understandable source to go from, its time to move in
the SAM stuff...

At the time I used Comet on a real SAM and was very happy with the speed of
Comet - nowadays however...

Best regards,

Stefan


On Sun, Jul 18, 2010 at 1:53 PM, the_wub ! <the...@gmail.com> wrote:

> That's great news, I'm sorry for suggesting that CM would not be up
> for it.  I should have done some research first!
> I'd be very happy to lend a hand with graphics and sound for a Dizzy
> port/re-write if that would be useful to you and the same goes to
> Stefan with Pang. :)
>
> I'd like to learn what is involved in disassembling a spectrum program
> and getting the source into Comet.  I realise there are modern tools
> on the PC but I'd rather use the real h/w if it can be done?
>

Reply via email to