Jump to content

Rainbow over Sparta


Recommended Posts

Previous program here


My new programming language now has an extra backend that generates 6502 machine code directly, without generating C and going through CC65. One of the benefits is that I have been able to implement the special, relocatable program format of SpartaDOS X. Here is the Rainbow demo that I posted earlier, now compiled for SDX:




The program file is only 29 bytes. SpartaDOS X loads it wherever MEMLO happens to be and runs it from there.


The program code is here:


The new backend produces simple listings of the generated code, which are mostly its internal data structures:





The backend doesn't support as much of the language yet as the CC65 backend. This is a lot of work and will happen over time.


I believe this is the first compiled programming language that supports SpartaDOS X, beyond assembler and the interpreted SDX batch language. I am very happy how it is turning out. It's the fulfilment of everything I wanted to do three decades ago. ?

  • Like 2
  • Thanks 2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...