2 ; Graphics driver for the 160x96x4 (CIO mode 7, ANTIC mode D) 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 %11000000, %00110000, %00001100, %00000011
46 .byte %00000000, %01010101, %10101010, %11111111
47 bar_table: ; Mask table for BAR
48 .byte %11111111, %00111111, %00001111, %00000011, %00000000
50 .byte $00, $0E, $32, $96
54 ; ******************************************************************************
58 ; ----------------------------------------------------------------------
60 ; SETPALETTE: Set the palette (in ptr1)
62 ; ----------------------------------------------------------------------
72 ; Get the color entries from the palette
82 ; Done, reset the error code
88 .include "atari_tgi_common.inc"