Do you know 65CM ?

Questions, bug reports, features requests, ... about the Oric Software Development Kit. Please indicate clearly in the title the related element (OSDK for generic questions, PictConv, FilePack, XA, Euphoric, etc...) to make it easy to locate messages.

Post Reply
User avatar
waskol
Flight Lieutenant
Posts: 392
Joined: Wed Jun 13, 2007 8:20 pm
Location: FRANCE, Paris

Do you know 65CM ?

Post by waskol » Thu Aug 21, 2008 2:25 pm

I think it can be very very easy to convert it for Oric...
It is a low level language, very close to ASM, that compile for 6502
Under GPL licence, it is open source, written for Virtual Pascal (since I program in Delphi, i see no problem at all to adapt it for the Oric).
I will test this this evening...

Have a look here :
http://hem.bredband.net/b129764/Siders/

In fact, it aims to ease the task of 6502 asm programming for
- "pros" like you
- or noobs like myself :lol:

User avatar
Dbug
Site Admin
Posts: 2740
Joined: Fri Jan 06, 2006 10:00 pm
Location: Oslo, Norway
Contact:

Post by Dbug » Thu Aug 21, 2008 8:07 pm

Hum, I took a look at one of the examples (heap management), not sure it's really easier than normal assembly code.

What it makes easier apparently is 16 bits operations (subtractions, comparisons). Not sure that this:

Code: Select all

WHILE 1
   IF var=0 THEN GOTO END
WEND
LABEL End
is really more readable than:

Code: Select all

.(
loop:
   lda var
   beq end
   jmp loop
.)
end:
Is it ?

User avatar
waskol
Flight Lieutenant
Posts: 392
Joined: Wed Jun 13, 2007 8:20 pm
Location: FRANCE, Paris

Post by waskol » Thu Aug 21, 2008 9:19 pm

Dbug wrote: Is it ?
Well, I think it depends mainly about the length of the assembly code.
The fact it is closer to a natural language make it easier to understand.

Personnaly, I still has some hard time to always remember all those mnemonics and their precise role.

Anyway, the idea is not bad at all, may be this "language" could be a bit more expanded in order to be really attractive. But in the mean time, it is designed to be closest as possible as asm in order for the compiler to provide in one pass a really optimized code.

User avatar
Dbug
Site Admin
Posts: 2740
Joined: Fri Jan 06, 2006 10:00 pm
Location: Oslo, Norway
Contact:

Post by Dbug » Thu Aug 21, 2008 9:36 pm

Yeah, but that's the point: Why doing it in one pass ?
With the power of current PC's, you could have something a lot more powerful I think, while still being simpler in the syntax.

I have the feeling that what this language do, could be nearly entirelly implemented using a set of macros with parameters in XA.

Basically it's the way the C compiler in the OSDK is implemented, with macros emulating 16 bits instructions, comparisons, etc...

I wonder if FORTH would not be a better language actually :)

User avatar
waskol
Flight Lieutenant
Posts: 392
Joined: Wed Jun 13, 2007 8:20 pm
Location: FRANCE, Paris

Post by waskol » Thu Aug 21, 2008 10:11 pm

Dbug wrote:I wonder if FORTH would not be a better language actually :)
Or Pascal ? :P

Post Reply