Jump to content
IGNORED

C02 Compiler


CurtisP

Recommended Posts

I put the C02 project on GitHub. Due to non-vcs patches to the compiler, I had to create a separate branch with a version that will compile programs in the vcs directory. This branch will eventually be merged back in.

 

The compiler can be built using gcc and Makefile or using the Pelles C compiler for Windows and the c02.ppj file.

 

To compile a .c02 program, cd to the vcs directy and issue the command "c02 filename" on Windows or "../c02 filename" in Linux, etc... where filename does not include the .c02 extension.

 

https://github.com/RevCurtisP/C02/tree/compile-vcs

Edited by CurtisP
  • Like 2
Link to comment
Share on other sites

  • 6 months later...

I added some more #pragma directives to the compiler, rambase and writebas, which specify the base address for reading and writing variables in RAM, to allow doe Superchip RAM and CBS RAM+.

 

There's also a #pragma zeropage deircetive and a zeropage type modifier, which allows setting a base address in zero page and declaration of zero page variables.

 

In addition, variables declared const are specifically allocated in ROM.

  • Like 3
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.

Guest
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.

Loading...
  • Recently Browsing   0 members

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