2 ; Graphics driver for the 160x192x2 (CIO mode 14, ANTIC mode C) on the Atari.
8 .include "zeropage.inc"
10 .include "tgi-kernel.inc"
11 .include "tgi-error.inc"
15 ; ******************************************************************************
17 ; ----------------------------------------------------------------------
19 ; Constants and tables
21 ; ----------------------------------------------------------------------
33 ; Screen memory size in bytes
34 scrsize = x_res * y_res / ppb
36 aspect = $0198 ; based on 4/3 display
39 ; Number of screen pages
43 mask_table: ; Mask table to set pixels
44 .byte %10000000, %01000000, %00100000, %00010000, %00001000, %00000100, %00000010, %00000001
46 .byte %00000000, %11111111
47 bar_table: ; Mask table for BAR
48 .byte %11111111, %01111111, %00111111, %00011111, %00001111, %00000111, %00000011, %00000001, %00000000
54 ; ******************************************************************************
58 ; ----------------------------------------------------------------------
60 ; SETPALETTE: Set the palette (in ptr1)
62 ; ----------------------------------------------------------------------
72 ; Get the color entries from the palette
78 ; Done, reset the error code
84 .include "atari_tgi_common.inc"