2 ; Graphics driver for the 320x192x2 (CIO mode 8, ANTIC mode F) 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 = $00CC ; 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
53 ; ******************************************************************************
57 ; ----------------------------------------------------------------------
59 ; SETPALETTE: Set the palette (in ptr1)
61 ; ----------------------------------------------------------------------
71 ; Get the color entries from the palette
77 ; Done, reset the error code
83 .include "atari_tgi_common.inc"