mirror of
https://github.com/nippur72/apple1-videocard-lib.git
synced 2025-01-19 14:30:07 +00:00
erase patterns first in clear screen
This commit is contained in:
parent
40ec940266
commit
bccd2ba829
@ -36,6 +36,13 @@ void screen2_init_bitmap(byte color) {
|
|||||||
TMS_WRITE_DATA_PORT(i); NOP; // color
|
TMS_WRITE_DATA_PORT(i); NOP; // color
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// fill pattern table with 0 (clear screen)
|
||||||
|
tms_set_vram_write_addr(SCREEN2_PATTERN_TABLE);
|
||||||
|
for(word i=768*8;i!=0;i--) {
|
||||||
|
TMS_WRITE_DATA_PORT(0);
|
||||||
|
NOP;
|
||||||
|
}
|
||||||
|
|
||||||
// fill color table with black on white
|
// fill color table with black on white
|
||||||
tms_set_vram_write_addr(SCREEN2_COLOR_TABLE);
|
tms_set_vram_write_addr(SCREEN2_COLOR_TABLE);
|
||||||
for(word i=768*8;i!=0;i--) {
|
for(word i=768*8;i!=0;i--) {
|
||||||
@ -49,13 +56,6 @@ void screen2_init_bitmap(byte color) {
|
|||||||
TMS_WRITE_DATA_PORT(i & 0xFF);
|
TMS_WRITE_DATA_PORT(i & 0xFF);
|
||||||
NOP;
|
NOP;
|
||||||
}
|
}
|
||||||
|
|
||||||
// fill pattern table with 0 (clear screen)
|
|
||||||
tms_set_vram_write_addr(SCREEN2_PATTERN_TABLE);
|
|
||||||
for(word i=768*8;i!=0;i--) {
|
|
||||||
TMS_WRITE_DATA_PORT(0);
|
|
||||||
NOP;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void screen2_putc(byte ch, byte x, byte y, byte col) {
|
void screen2_putc(byte ch, byte x, byte y, byte col) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user