Wonderful! Those compare files should be invaluable to port existing
apps between machines. There are a ton of useful things written for M100
that don't work on K85 or M10, yet could with only tiny edits if known.
(same for NEC, but a lot of stuff was already either ported or originaly
written for both in the first place so it's less of an issue)
There have been similar attempts to put together translation tables
since decades ago, but they are still incomplete. Recently I ported a
couple different BA2CO/CO2BA apps from 100 to K85, and even though they
only needed a couple of addresses changed, even those few things weren't
all described in the existing works. I had to consult two different
incomplete things to deduce one address, and I had to just hope that a
few other addresses had the same offset, as they weren't explicitly
covered. I got lucky and it worked, but those other addresses could have
just as easily been anywhere, or offset by a few more bytes because of a
difference in some routine in between.
If I had a full table like this it would have been almost brainless.
Are you saying that these reconstructed asm files now reproduce the
original compiled binary? Meaning this could now be a starting point for
reasonable hacking, to change the behavior without simply breaking
everything?
--
bkw
On 12/17/21 5:40 PM, Stefano Bodrato wrote:
I'm refreshing my disassembly of the M100+M10+KC85 ROM.
The current activity is a cross comparison between it and the MSX ROM
and the CP/M version of MBASIC v.5.22.
I'm adjusting all of them by using the NASCOM and the MBASIC 5.2 source
listing comments.
The asm file includes conditional sections to generate perfectly
identical M100, M10 or KC85 ROM images. A handy use of it could be to
generate the MAP files and use them as cross reference for any ROM location.
https://github.com/z88dk/techdocs/blob/master/targets/m100/m100.asm
<https://github.com/z88dk/techdocs/blob/master/targets/m100/m100.asm>
The CP/M version is in turn so well decoded to be modifyable, e.g. I was
able to add graphics support for the ZX Spectrum +3 when running CP/M
Ottieni Outlook per Android <https://aka.ms/ghei36>
--
bkw