[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Turbo Pascal for the Apple II (native, not CP/M)



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.  Are
you 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?