2 ; Graphics driver for the 80x192x16b (CIO mode 9, ANTIC mode F, GTIA mode $40) 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 scrsize = x_res * y_res / ppb
40 ; Number of screen pages
44 mask_table: ; Mask table to set pixels
45 .byte %11110000, %00001111
47 .byte $00, $11, $22, $33, $44, $55, $66, $77, $88, $99, $aa, $bb, $cc, $dd, $ee, $ff
48 bar_table: ; Mask table for BAR
49 .byte %11111111, %00001111, %00000000
51 .byte $00, $0F, $01, $02, $03, $04, $05, $06, $07, $08, $09, $0A, $0B, $0C, $0D, $0E
55 ; ******************************************************************************
59 ; ----------------------------------------------------------------------
61 ; SETPALETTE: Set the palette (in ptr1)
63 ; ----------------------------------------------------------------------
72 .include "atari_tgi_common.inc"