nuclear@1: #include nuclear@0: #include "vdp.h" nuclear@0: nuclear@0: int main(void) nuclear@0: { nuclear@0: vdp_init(); nuclear@0: nuclear@1: vdp_set_pal_entry(0, 0, 0, 0, 0); nuclear@0: vdp_set_pal_entry(0, 1, 7, 0, 3); nuclear@0: vdp_set_bgcolor(0, 1); nuclear@0: nuclear@1: vdp_enable_hintr(12); nuclear@1: vdp_enable_vintr(); nuclear@1: nuclear@0: for(;;); nuclear@0: nuclear@0: return 0; nuclear@0: } nuclear@1: nuclear@1: uint16_t testcol = 0x00c0; nuclear@1: nuclear@1: void vblank_handler(void) nuclear@1: { nuclear@1: testcol = 0x00c0; nuclear@1: }