2 ; Graphics driver for the 80x192x16h (CIO mode 11, ANTIC mode F, GTIA mode $C0) on the Atari.
8 .include "zeropage.inc"
10 .include "tgi-kernel.inc"
11 .include "tgi-mode.inc"
12 .include "tgi-error.inc"
16 ; ******************************************************************************
18 ; ----------------------------------------------------------------------
20 ; Constants and tables
22 ; ----------------------------------------------------------------------
34 ; Screen memory size in bytes
35 scrsize = x_res * y_res / ppb
40 ; Number of screen pages
44 mask_table: ; Mask table to set pixels
45 .byte %11110000, %00001111
47 .byte $00, $11, $22, $33, $44, $55, $66, $77, $88, $99, $aa, $bb, $cc, $dd, $ee, $ff
48 bar_table: ; Mask table for BAR
49 .byte %11111111, %00001111, %00000000
51 .byte $00, $10, $20, $30, $40, $50, $60, $70, $80, $90, $A0, $B0, $C0, $D0, $E0, $F0
55 ; ******************************************************************************
59 ; ----------------------------------------------------------------------
61 ; SETPALETTE: Set the palette (in ptr1)
63 ; ----------------------------------------------------------------------
72 .include "atari_tgi_common.inc"