New programming language ccz80

Página 3/5
1 | 2 | | 4 | 5

Por Tanni

Hero (556)

Imagen del Tanni

07-04-2008, 16:59

The ccz80 it's not C and don't want be C. Only implements the loops, conditions, etc. with the syntax of C, that is very flexible and easy to implement in a compiler, but ccz80 don't want be C, ... The syntax of ccz80 could be based in Pascal, Basic or another language, but I prefer C.

... the code generated is less optimized that if the programmer use pointers directly. I prefer force the programmer to use pointers.

Hello Denoneno!

Its always fine if somebody invents a new programming language.

But why do you prefer C if ''the ccz80 it's not C and dont't want to be C''? If the syntax and the semantics are C (I don't know if the semantics of ccz80 are according to C), then you just reinvented or reimplemented C, giving it the C like looking name ccz80 (reminds me somewhat to ''cease z80''?); if the syntax is like C, but the semantics are not, this could be very confusing to a possible user of your language. One reason for going beyond the machine language level is for increasing the reliability and convenience for the programmer.

Prefering to force someone doesn't sound good either. But regardless of that, it is a well known beginners mistake in C coding to use too many pointers even if you would do better with call by value.

Por Dinoneno

Resident (41)

Imagen del Dinoneno

07-04-2008, 18:13

Hello Tanni. Thanks for your interest for ccz80. Excuse me, maybe it's because my English I can't explain my ideas.
The ccz80 ([C]ross [C]ompiler for [Z80]) want be a compiler for the Z80, and so, the data types are equivalent to Z80 register, and the structures are equivalents to the structures that the set of Z80 instructions can be create: conditions, loops, ... As Artrag says, ccz80 is a level over a macroassembler, but it's not a high level compiler. It's a programming languge designed for the Z80. The syntax is based in C, but can be based in Pascal, by example. If the syntax is based in C I write for a assignment "a = 3", if the syntax is based in Pascal I write "a := 3", and if the syntax is based in Basic I write "LET a = 3" (or seemed); but with any syntax the object code generated in assembler is the same. This idea is like the idea of plataform .NET (Visual Basic, C#, J#, etc.) generate the same object code with diferent syntax. From all the syntax I know I choose C.
The objetive of ccz80 is programmer for Z80, with a certain level of abstraction over the machine code, but without be too far of Z80 instructions, because if we are too far the code generated can be innefective. This is also the cause for force using pointer and not operator [], avoid another data type out the 8 and 16 bits, avoid the local variables and the functions in ccz80 code (only in assembler code) with arguments that must be obtained from stack many times, ... and others "bizarre" characteristics of this little language.
Well, I hope my dictionary help me to explain your questions. Thanks.

Por LeandroCorreia

Paladin (963)

Imagen del LeandroCorreia

07-04-2008, 22:36

I am interested in a high-level compiled language for creating MSX games in ROM format. Needless to say that I´d need commands for joystick/keyboard input, PSG and graphics. Are there any libraries for these or would I have to use inline assembly to start programming these things?

Por nikodr

Paladin (750)

Imagen del nikodr

08-04-2008, 04:38

Unless there are libraries available that can help with the use and initilization of joy/keyboard psg or vdp stuff,
I would advice you to get tniasm.All you have to do is have this at start of your program

db 0feh
dw startaddress,endadr,executionaddress

org address

and you can easily have bin files.For rom files i think the method is similar
you just supply the rom "header" information ,(the "AB" i think plus whatever is needed.)

ccz80 seems VERY interesting and powerful,but unfortunately i cant follow it easily.I am a very newbie in asm and i would find it difficult to follow the way of mixing c and asm.Maybe later when i advance more i will definitely try it.

Congratulations though to those people that created it the manual seems to be well written,and it seems to have lots of features.

Por Dinoneno

Resident (41)

Imagen del Dinoneno

08-04-2008, 08:50

Hello Leandro Correia. The library MSX included in the ccz80 web is very basic. I don't know too the MSX system and I can't make a very well set of functions for it. You can see the MSX library documentation (in downloads section) and evaluate if there are useful for you. Of course, if you know assembler you can write more functions for your purpose or improve the functions in library (they are open source). You can too view the library functions in UnAz page (in links section of ccz80 web).

Por Dinoneno

Resident (41)

Imagen del Dinoneno

08-04-2008, 08:50

Hello Nikodr. I am happy you like ccz80. Maybe, if you know functions libraries in assembler for MSX you could adapte them to ccz80. If I can help you, you can contact at mail or forum in contact section in ccz80 web, or this forum if you prefer.

Por Dinoneno

Resident (41)

Imagen del Dinoneno

28-04-2008, 14:51

Version 2.0.2 released. It's include some corrections in command line parameters and expressions evaluation.

Por snout

Ascended (15187)

Imagen del snout

24-06-2008, 22:52

is it me or is the ccz80 site down now?

Por cesco

Champion (454)

Imagen del cesco

25-06-2008, 07:38

is it me or is the ccz80 site down now?

Yes, I also tried to open it yesterday and it gives a 404 Error code written in Spanish... I used to access the website via the URL www.ccz80.tk
However the forum is still alive (http://ccz80.foroactivo.com/ccz80-f1/)

Por cesco

Champion (454)

Imagen del cesco

29-06-2008, 22:21

Well, it's a pity that CCZ80 has been putted offline from the internet. Does anyone knows how to contact Dinomeno and ask him to publish it again ?

Página 3/5
1 | 2 | | 4 | 5