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

24 lines
343 B
Plaintext

#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;
}