CurtisP Posted February 3, 2018 Author Share Posted February 3, 2018 (edited) 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 February 13, 2018 by CurtisP 2 Quote Link to comment Share on other sites More sharing options...
CurtisP Posted August 16, 2018 Author Share Posted August 16, 2018 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. 3 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.