mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2024-11-29 14:51:17 +00:00
24 lines
343 B
Plaintext
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;
|
||
|
}
|