1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-11-29 14:51:17 +00:00
8bitworkshop/presets/williams/skeleton.cmoc

24 lines
343 B
Plaintext
Raw Normal View History

2023-11-05 18:12:14 +00:00
#include "williams.h"
//#link "williams.c"
int main(void) {
byte i;
// write to graphics ROM
rom_select = 1;
// set palette
for (i=0; i<16; i++)
palette[i] = (byte)(i*7);
// draw a rectangle
blit_solid(0, 0, 152, 255, 0x1f);
// main loop
while (1) {
watchdog0x39 = 0x39;
// code here
}
return 0;
}