6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Fri May 10, 2024 9:52 am

All times are UTC




Post new topic Reply to topic  [ 64 posts ]  Go to page Previous  1, 2, 3, 4, 5
Author Message
 Post subject: Re: CP/M for the 6502!
PostPosted: Wed Mar 22, 2023 10:11 am 
Offline
User avatar

Joined: Thu Oct 12, 2017 10:51 pm
Posts: 87
Excellent, thank you! I'll try porting his edit. Do you have a online source of that document that I can use as a reference?

I also see that he has a port of the BASIC-E compiler, that'd be really nice to have. It says it's a translation of Gordon Eubanks' original, which was written in PL/M, so that's a nice piece of work. The original's in the public domain so provided I can plausibly argue that it's covered by the new GPL-3 license then there are no derived work issues to deal with.


Top
 Profile  
Reply with quote  
 Post subject: Re: CP/M for the 6502!
PostPosted: Wed Mar 22, 2023 10:31 am 
Offline

Joined: Thu Mar 12, 2020 10:04 pm
Posts: 690
Location: North Tejas
hjalfi wrote:
Belatedly: I have finally written about 3/4 of a functioning assembler for CP/M-65. It's good enough to compile small programs and produce native binaries. It's about 1800 lines of C which compiles into an eye-watering 11kB of 6502 code but even on a BBC B there should be enough spare RAM to compile at least something. And I recorded it all! Do you like very long, boring live coding videos?

Bravo! What took you so long? The videos are quite watchable at 2x speed.

For a size reference, I have transcribed the 6800 FLEX native assembler to the 6502. It is a full featured assembler for its time though lacking advanced things like conditional assembly and macros. It weighs in at 7.7K.

hjalfi wrote:
So the only remaining piece of the puzzle to produce an actually useful (for some definitions of useful) operating system is an editor. CP/M traditionally uses edlin. I've found a copy of the original PL/M source, and bleagh.

Does anyone know of any existing ports of something like edlin for the 6502 that I might be able to rip off, I mean, reuse?

I have also transcribed the FLEX text editor to the 6502. It still lacks several commands and has bugs. I do not know enough to say how difficult it would be to make it run under CP/M-65. It is somewhat better than CP/M's ED, more like EDLIN.

This is the manual for the 6809 version; the 6800 version I started with is missing a few of the commands.

http://www.flexusergroup.com/flexusergr ... /tedit.pdf

How does a program determine the end of the usable TPA? With CP/M-80, the jump to BDOS indicates where the operating system code begins.

In the past, I have threatened to write a compiler for PL/M.

https://talk.dallasmakerspace.org/t/pro ... /18852/216

It is not very far along. <mumble>too many projects...</mumble>
hjalfi wrote:
At one point someone told me about a third CP/M for the 6502 project, but I can't find their message now...

That would be viewtopic.php?f=2&t=7394

It uses 256 byte record sizes, so may be difficult to port code to.


Top
 Profile  
Reply with quote  
 Post subject: Re: CP/M for the 6502!
PostPosted: Wed Mar 22, 2023 1:02 pm 
Offline
User avatar

Joined: Tue Mar 05, 2013 4:31 am
Posts: 1373
hjalfi wrote:
Excellent, thank you! I'll try porting his edit. Do you have a online source of that document that I can use as a reference?

I also see that he has a port of the BASIC-E compiler, that'd be really nice to have. It says it's a translation of Gordon Eubanks' original, which was written in PL/M, so that's a nice piece of work. The original's in the public domain so provided I can plausibly argue that it's covered by the new GPL-3 license then there are no derived work issues to deal with.


Hans Otten had some correspondence with Richard a while back. That led to Hans putting some details on his website and some links for sources and documentation:

http://retro.hansotten.nl/6502-sbc/dos-65/#v3

http://retro.hansotten.nl/uploads/dos65 ... 20docs.zip

The zip file linked above has the same PDF with the GPL 3 license that attached above. There's also numerous attachments directly from Richard on the V2 code from several years ago on the OSI web forum.

https://osiweb.org/osiforum/viewtopic.php?f=4&t=235

_________________
Regards, KM
https://github.com/floobydust


Top
 Profile  
Reply with quote  
 Post subject: Re: CP/M for the 6502!
PostPosted: Fri Mar 24, 2023 11:54 am 
Offline

Joined: Wed Jan 01, 2003 6:32 pm
Posts: 32
BillG wrote:
It is not very far along. <mumble>too many projects...</mumble>
hjalfi wrote:
At one point someone told me about a third CP/M for the 6502 project, but I can't find their message now...

That would be viewtopic.php?f=2&t=7394

It uses 256 byte record sizes, so may be difficult to port code to.


Well that would be my approach. Actually the Assembler should be easy to port. It just reads the *.ASM-file sequentially twice and at the end writes the source file and the label file to the disc. To adapt it to 128 byte blocks, just read 2 of them.

The whole CPM-65 package is another story though

Dietrich

_________________
My system: Elektor Junior Computer, GitHub https://github.com/Dietrich-L


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 64 posts ]  Go to page Previous  1, 2, 3, 4, 5

All times are UTC


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: