apple1-videocard-lib/demo/demo_screen2.h
2021-12-16 18:33:56 +01:00

33 lines
858 B
C

void demo_screen2() {
tms_init_regs(SCREEN2_TABLE);
byte text_color = FG_BG(COLOR_BLACK,COLOR_WHITE);
screen2_init_bitmap(text_color);
screen2_puts(0, 0, text_color, "*** P-LAB VIDEO CARD SYSTEM ***");
screen2_puts(0, 2, text_color, "16K VRAM BYTES FREE");
screen2_puts(0, 4, text_color, "READY.");
// display all colors in the palette
for(byte i=0;i<16;i++) {
screen2_puts(5,(byte)(6+i),(byte)(((15-i)<<4)+i)," SCREEN 2 ");
}
screen2_line(18, 45,232,187);
screen2_line(18,187,232, 45);
screen2_plot_mode = PLOT_MODE_RESET;
screen2_line(18+5, 45,232+5,187);
screen2_line(18+5,187,232+5, 45);
screen2_plot_mode = PLOT_MODE_INVERT;
screen2_line(18+5+5, 45,232+5+5,187);
screen2_line(18+5+5,187,232+5+5, 45);
screen2_plot_mode = PLOT_MODE_SET;
//vti_ellipse_rect(7,9,202,167);
}