Login
Back to forumReply to this topicGo to last reply

Posted By

Harry Potter
on 2019-06-30
09:54:20
 C/Asm for the Plus4/C16?

Hi! I'm looking for a Plus4/hosted C compiler and assembler. Where can I find some?

Posted By

Spektro
on 2019-06-30
12:31:35
 Re: C/Asm for the Plus4/C16?

Hello young wizard happy
Try cc65: https://github.com/cc65/cc65

Posted By

Harry Potter
on 2019-06-30
12:45:16
 Re: C/Asm for the Plus4/C16?

Spectro, I thank you for your information. I already use cc65 and like it. happy I am looking for a Plus4-hosted C compiler and assembler. I probably won't use it, but I want to support it. happy

Posted By

Spektro
on 2019-07-01
02:20:23
 Re: C/Asm for the Plus4/C16?

There are native Assembler, Basic, Forth, Logo (not sure if it's a compiler), and Pascal compilers for Plus4 but no C compiler, as far as I know.

Posted By

Harry Potter
on 2019-07-01
07:14:14
 Re: C/Asm for the Plus4/C16?

Okay.

Posted By

SVS
on 2019-07-01
11:52:31
 Re: C/Asm for the Plus4/C16?

If you are looking for a Plus/4 based Assembler there is also my Mega Assembler wink
I should be glad to answer to you questions if you have.

Posted By

MMS
on 2019-07-02
09:17:38
 Re: C/Asm for the Plus4/C16?

CC65 had C16 and Plus/4 functional libraries, I downloaded them in the past, though I never tested them in reality. I prefer our fantastic BASIC happy

https://cc65.github.io/doc/c16.html

Posted By

MMS
on 2019-07-02
09:21:05
 Re: C/Asm for the Plus4/C16?

But C16 / Plus/4 has no official graphics drivers for CC65.
Maybe some coders here did some, as there were some rumours that some demo parts were made in C. without gfx drivers it is not possible, and no other competent C compiler is known by me. So...

Posted By

Harry Potter
on 2019-07-02
12:58:28
 Re: C/Asm for the Plus4/C16?

I use cc65. In fact, I prefer cc65. I just want to do a special project to target old, native C compilers.

Posted By

MMS
on 2019-07-02
14:13:21
 Re: C/Asm for the Plus4/C16?

Sounds great!
I know the speed benefits of C language, but AFAIK the cc65 does not support floating point too.
Actually the C64 and Plus/4 have a lot of MATH functions in the ROM to manage floating point (though not IEEE754 compatible)

I think it is a little lame that such an important number not used at all, when all the necessary functions implemented in the ROM, no need to reinvent the wheel. They culd use a fallback scenario in the compiled code to call the ROM routines. Slower, but at least work
(eg. George's 3D engine mainly based on floating point calculations)

I mainly use gfx. If I do some code (rarely), I heavily use floating point (eg. Mandelbrot)
So if you could solve these issues in your C project, I am interested too.

Posted By

Harry Potter
on 2019-07-03
14:47:35
 Re: C/Asm for the Plus4/C16?

I'm planning this for Assembler also. What are the most popular Assemblers for the Plus4, hosted on the Plus4?

Posted By

Harry Potter
on 2019-07-03
15:48:17
 Re: C/Asm for the Plus4/C16?

What Forth compilers would you recommend? I'm looking for code efficiency and functionality and prefer full use of a Plus4's memory.

Posted By

MMS
on 2019-07-06
08:03:08
 Re: C/Asm for the Plus4/C16?

Definitely most of the programming tools/languages listed here, you you can easily find your preferred language:
(from Forth I see three releases)
http://plus4world.powweb.com/sl/305

I have to admit, most of these stuff released by the Hungarina company Novotrade, so most of the documentation are in Hungarian, or does not exist (or at least not available online)

Posted By

Harry Potter
on 2019-07-06
09:55:50
 Re: C/Asm for the Plus4/C16?

I downloaded CForth. I Googled the manual but couldn't find it.

Posted By

MMS
on 2019-07-06
15:55:41
 Re: C/Asm for the Plus4/C16?

I checked it, description is available in a Hungarian book called 100+4/2.
I do not own it, but try to find the link.

http://pcvilag.muskatli.hu/irodalom/SpV/SpV09/kep.php?kepparam=spv09-34.jpg

UPDATE
The scanned book is available athe following link:
http://pcvilag.muskatli.hu/irodalom/CoV/c17/c17.html
Page 151-158 contains the G-Forth descripton.

You need to enter POKE1047,15 before RUN, otherwise it would not start properly. (as per the book)
At least you can have the comand list and the syntax.
AFAIK some version can use only the cassette.

Posted By

Harry Potter
on 2019-07-07
14:24:03
 Re: C/Asm for the Plus4/C16?

The link is in Hungarian. I can't read it.

Posted By

MMS
on 2019-07-08
03:25:53
 Re: C/Asm for the Plus4/C16?

Right now I cannot offer a translation, but you may try a free OCR on the saved pages + google translate (usually the best is English). Some OCRs are freely available on Microsoft Store, with mixed results (depends on the clarity of picture, fontset, etc)

Posted By

MMS
on 2019-07-08
03:26:51
 Re: C/Asm for the Plus4/C16?

Right now I cannot offer a translation, but you may try a free OCR on the saved pages + google translate (usually the best is English). Some OCRs are freely available on Microsoft Store, with mixed results (depends on the clarity of picture, fontset, etc)



Back to topReply to this topic


Copyright © Plus/4 World Team, 2001-2024. Support Plus/4 World on Patreon