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-mode.inc"
12 .include "tgi-error.inc"
16 ; ******************************************************************************
18 ; ----------------------------------------------------------------------
20 ; Constants and tables
22 ; ----------------------------------------------------------------------
34 ; Screen memory size in bytes
35 .define scrsize x_res * y_res / ppb
37 .define aspect $0100 ; 1:1
39 .define mem_needed 7147
40 ; Number of screen pages
44 mask_table: ; Mask table to set pixels
45 .byte %10000000, %01000000, %00100000, %00010000, %00001000, %00000100, %00000010, %00000001
47 .byte %00000000, %11111111
48 bar_table: ; Mask table for BAR
49 .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"