1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-07-10 05:29:05 +00:00
8bitworkshop/presets/nes/cc65.skel

20 lines
436 B
Plaintext
Raw Normal View History

2019-02-10 16:04:31 +00:00
#include "neslib.h"
//#link "jroatch.c"
extern unsigned char jroatch_chr[0x1000];
#define TILESET jroatch_chr
void main(void)
{
//copy tileset to RAM
vram_adr(0x0);
vram_write((unsigned char*)TILESET, sizeof(TILESET));
pal_col(1,0x04);
pal_col(2,0x20);
pal_col(3,0x30);
put_str(NTADR_A(2,2),"HELLO, WORLD!");
ppu_on_all();//enable rendering
while(1);//do nothing, infinite loop
}