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

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



Hi!

On Mar 7, 7:56 pm, Steven wrote:
> That's going to be a good trick, seeing as how TP was written in Z80 assembler.

    Many, many moons ago I bought a CP/M program that takes the CP/M
executable for Turbo Pascal as input and creates a source file as
output.  I have not been able to find that program.  However, someone
did the same thing for the 8086 version.  The archive can be found at:
>http://pcengines.ch/file/scg.zip
I used the source file generated by "SCG.EXE" as input to create a
source file that I can assemble with the Kyan assembler that I souped
up.  Right now, the 6502 file out of the assembler is capable of
parsing most of the way through the following source file:
PROGRAM TEST;
CONST INT = 100;
 CH1 = 'A';
 CH2 = ^a;
 STR = 'ABCD';
BEGIN
END.

    This project is the most fun I've had in ages but is a long, long
way from being done.  I must say it wouldn't be possible if I didn't
have AppleWin and its debugger to work with.

    If anyone is interested, I'd be happy to send along a copy of the
listing file created by the assembler. It's currently about 600K and
changes frequently during the day.

Willi