C compiler

Everything about Memotech CP/M and CP/M Software.
Post Reply
Lardo Boffin
Posts: 32
Joined: 04 Apr 2021 19:54

C compiler

Post by Lardo Boffin »

Hi all

Having decided to learn C I figured it would be a good use of my new 512, otherwise I will just end up playing a few games and then it will end up in a cupboard.

I’m looking for a C compiler for CP/M for my 512 with a REMEMorizer (the 80 by 48 column display is awesome!). Ideally it needs to have some libraries for text and graphics functions.

Up until recently I have been doing this on my Tatung Einstein using HiSoft C which does have a Tatung library - it includes changing screen mode, text at ‘X,Y’, like drawing and sprites etc. Unfortunately the Ctrl key on my Einstein is playing up (and this is used a LOT in CP/M) and it takes up a huge amount of space on my desk!

Any help appreciated thanks.
MTX512 and REMEMOrizer (and a bunch of ZX81 add ons).
User avatar
Dave
Posts: 1321
Joined: 11 Aug 2012 18:16
Contact:

Re: C compiler

Post by Dave »

You can find a couple of "C" compilers in the disks from the MTX Germany User Club

http://primrosebank.net/computers/cpm/cpm_uc_de.htm

Small C is on disk 28

You'll need to use something like Andy's cpmcbfs to get the files onto your REMEMORizer SD card
Lardo Boffin
Posts: 32
Joined: 04 Apr 2021 19:54

Re: C compiler

Post by Lardo Boffin »

Thanks Dave. I am waiting on getting my laptop back then I will download this.
MTX512 and REMEMOrizer (and a bunch of ZX81 add ons).
Lardo Boffin
Posts: 32
Joined: 04 Apr 2021 19:54

Re: C compiler

Post by Lardo Boffin »

Looks like I am up and running!

16FFECC2-D97C-45B8-BD29-881D26F522B8.jpeg
16FFECC2-D97C-45B8-BD29-881D26F522B8.jpeg (1.48 MiB) Viewed 30362 times

Am using a copy of Hisoft C as I didn’t find any instructions (in English) for Small C and never used it before.
MTX512 and REMEMOrizer (and a bunch of ZX81 add ons).
Lardo Boffin
Posts: 32
Joined: 04 Apr 2021 19:54

Re: C compiler

Post by Lardo Boffin »

Next stop trying to figure out the MTX specific stuff like changing mode, putting text at X,Y and graphics etc.
MTX512 and REMEMOrizer (and a bunch of ZX81 add ons).
Martin A
Posts: 826
Joined: 09 Nov 2013 21:03

Re: C compiler

Post by Martin A »

The FDX 80 column screen drive expects an offset of 32, on the line, point and cursor positioning. Presumably done to keep them from being mistaken for control codes.

So printing 0x03, 0x20, 0x20 is the equivalent of CSR 0,0 in BASIC.

The full list is inthe FDX technical manual.
Lardo Boffin
Posts: 32
Joined: 04 Apr 2021 19:54

Re: C compiler

Post by Lardo Boffin »

Martin A wrote: 30 Apr 2021 23:17 The FDX 80 column screen drive expects an offset of 32, on the line, point and cursor positioning. Presumably done to keep them from being mistaken for control codes.

So printing 0x03, 0x20, 0x20 is the equivalent of CSR 0,0 in BASIC.

The full list is inthe FDX technical manual.
Thanks.
MTX512 and REMEMOrizer (and a bunch of ZX81 add ons).
User avatar
Crazyboss
Site Admin
Posts: 283
Joined: 09 Aug 2012 21:45
Location: Sweden
Contact:

Re: C compiler

Post by Crazyboss »

Now a days i guess developers use the sdcc compiler, i was told it was quite optimized, and i know people in the ColecoVision world use to make new games for that system.
//CLAUS - Webmaster at www.mtxworld.dk
Post Reply