apple1-videocard-lib/demos/demo/demo_extvid.h

20 lines
610 B
C
Raw Normal View History

2021-12-08 11:53:13 +00:00
// TODO make it static once KickC bug is fixed
byte external_input = 0;
void flip_external_input() {
external_input ^= 1;
if(external_input) woz_puts("EXT INPUT ON\r");
else woz_puts("EXT INPUT OFF\r");
// fill color table with transparent color so that external input can be seen
2021-12-16 17:33:56 +00:00
tms_set_vram_write_addr(TMS_COLOR_TABLE);
2021-12-08 11:53:13 +00:00
for(byte i=32;i!=0;i--) {
TMS_WRITE_DATA_PORT(FG_BG(COLOR_DARK_YELLOW, COLOR_TRANSPARENT));
2021-12-08 11:53:13 +00:00
}
tms_set_external_video(external_input); // write "external video input" bit
tms_set_color(0); // transparent color
2021-12-08 11:53:13 +00:00
}