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-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 3209
40 ; Number of screen pages
44 mask_table: ; Mask table to set pixels
45 .byte %11000000, %00110000, %00001100, %00000011
47 .byte %00000000, %01010101, %10101010, %11111111
48 bar_table: ; Mask table for BAR
49 .byte %11111111, %00111111, %00001111, %00000011, %00000000
51 .byte $00, $0E, $32, $96
55 ; ******************************************************************************
59 ; ----------------------------------------------------------------------
61 ; SETPALETTE: Set the palette (in ptr1)
63 ; ----------------------------------------------------------------------
73 ; Get the color entries from the palette
83 ; Done, reset the error code
89 .include "atari_tgi_common.inc"