Steven Hirsch wrote:
AppleCPM wrote:Hi! On Mar 8, 8:09 am, Steven wrote:I'm still not quite following this. I'm aware of the Z80 disassembly. Areyou saying that you're hand-translating the Z80 asm to 6502?"SCG.EXE", part of the "SCG.ZIP" archive referred to in a previous message, creates an 8086 assembly language source file from the executable for version 3.01A of Turbo Pascal for MS/DOS. I took the generated source file and added a bunch of macros. The macros allow 8086 assembly language mnemonics to assemble as 6502 machine language. For example, ' MOV.B BH,mem' becomes ' LDA mem' and ' STA BH'. Similarly, ' MOV BX,mem' becomes ' LDA mem', ' STA BX', LDA mem+1' and ' STA BX+1'.Ok, now I have the missing step. If that was mentioned in your earlier posting, I must have blown right by it.FYI: There was a similar disassembly that produced Z80 code. Wouldn't that be a whole lot simpler to deal with in terms of translating to 6502?
Translating in the sense of interpreting is one thing, but it's a far cry from a real 6502 implementation. Page zero is so critical to any 6502 program that porting any other architecture to the 6502 is non-trivial. TP's great strength was its speed and its small footprint, but I don't think either of those attributes will "translate" to 6502. ;-) -michael NadaNet and AppleCrate II: parallel computing for Apple II computers! Home page: http://home.comcast.net/~mjmahon "The wastebasket is our most important design tool--and it's seriously underused."