Skip to content
C language for IchigoJam
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
obj
src add ws_led api Jun 3, 2019
.gitattributes Initial commit May 27, 2019
.gitignore add bin2bas for Windows (test), expcg sample May 30, 2019
LICENSE Initial commit May 27, 2019
Makefile add bin2bas for Windows (test), expcg sample May 30, 2019
README.md add notice May 27, 2019
asm.s add ws_led api Jun 3, 2019
bin2bas add APIs and samples May 30, 2019
bin2bas.c add APIs and samples May 30, 2019
bin2bas.exe add bin2bas for Windows (test), expcg sample May 30, 2019
c-bin2bas.c add bin2bas for Windows (test), expcg sample May 30, 2019
c-bin2bas.sh add bin2bas for Windows (test), expcg sample May 30, 2019
c4ij.ld
main.bas add ws_led api Jun 3, 2019

README.md

C_for_IchigoJam

c4ij - C language for IchigoJam!

Let's make BASIC program in C language on your PC!
This tool provide to convert IchigoJam BASIC to bin file.

  • Only IchigoJam 1.3.2b12 or higher for LPC1114

Minimum example

#include <std15.h>  

__attribute__ ((section(".main")))  
int main(int param, int ram, int rom, int (*divfunc)()) {  
	return rnd(x);  
}  

How to use

Edit src/main.c
Check commands with src/std15.h

$ make  

Send POKE commands to IchigoJam. (main.bas)
And ?USR(#700,0) to go!

Kawakudari example

#include <std15.h>

__attribute__ ((section(".main")))
int main(int param, int ram, int rom, int (*divfunc)()) {
	cls();
	int x = 15;
	for (;;) {
		locate(x, 5);
		putc('O');
		locate(rnd(32), 23);
		putc('*');
		putc(10);
		wait(3);
		
		int c = inkey();
		if (c == KEY_LEFT)
			x--;
		if (c == KEY_RIGHT)
			x++;
		if (scr(x, 5))
			break;
	}
	return x;
}

License

CC BY 4.0 http://ichigojam.net/

You can’t perform that action at this time.