nickgammon / G-Pascal

Tiny Pascal and Assembler for the Ben Eater's 6502 board
MIT License
27 stars 4 forks source link

Did you Save the old 6800 Source Code for your 6800 Evaluation Kit? #1

Open qNI794C28y0lrPwFsBMb7 opened 11 months ago

qNI794C28y0lrPwFsBMb7 commented 11 months ago

Mr Gammon:

 I read the article on G-Pascal on SuperCoders - did you keep your original 6800 source code for your 6800 Evaluation Kit?

 Reason I ask is I would like to recreate a Pascal compiler for the 6800 that might be ported to a SWTPCo 6800.

Regards,

Nelson

nickgammon commented 11 months ago

No, I didn't. Not really. It was on magnetic tape which I still possess, but I tried to read it a couple of years ago and it was mainly crap. And in those days I didn't have a way of printing it.

I suggest you look at the code which I ported to the 6502, which I see you have found. :)

The processors are different, but not that much different. As I recall, the 6800 had an A and B register, and a 2-byte X register for indexing. The 6502 works somewhat differently, but if I could port it from 6800 to 6502, then you can port it back. ;)

Also see this link for more documentation, syntax diagrams and so on: https://gammon.com.au/G-Pascal/

Regards,

Nick

qNI794C28y0lrPwFsBMb7 commented 11 months ago

Nick:

 Ah, well, I could hope :-)

 I will have to dust off the 6502 programming books I have to understand the X and Y index registers a bit better.

 Thanks for the response -

Regards,

Nelson -----Original Message----- From: nickgammon/G-Pascal @.> Sent: Nov 26, 2023 3:26 PM To: nickgammon/G-Pascal @.> Cc: Vermithrax63 @.>, Author @.> Subject: Re: [nickgammon/G-Pascal] Did you Save the old 6800 Source Code for your 6800 Evaluation Kit? (Issue #1)

No, I didn't. Not really. It was on magnetic tape which I still possess, but I tried to read it a couple of years ago and it was mainly crap. And in those days I didn't have a way of printing it. I suggest you look at the code which I ported to the 6502, which I see you have found. :) The processors are different, but not that much different. As I recall, the 6800 had an A and B register, and a 2-byte X register for indexing. The 6502 works somewhat differently, but if I could port it from 6800 to 6502, then you can port it back. ;) Also see this link for more documentation, syntax diagrams and so on: https://gammon.com.au/G-Pascal/ Regards, Nick — Reply to this email directly, view it on GitHub (https://github.com/nickgammon/G-Pascal/issues/1#issuecomment-1826887836), or unsubscribe (https://github.com/notifications/unsubscribe-auth/APBGJRXEJKTO4WE7RPSGH6DYGOQV3AVCNFSM6AAAAAA73CN3L2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRWHA4DOOBTGY). You are receiving this because you authored the thread.Message ID: @.***>