2 ; Graphics driver for the 80x192x16h (CIO mode 11, ANTIC mode F, GTIA mode $C0) 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 = $0330 ; based on 4/3 display
39 ; Number of screen pages
43 mask_table: ; Mask table to set pixels
44 .byte %11110000, %00001111
46 .byte $00, $11, $22, $33, $44, $55, $66, $77, $88, $99, $aa, $bb, $cc, $dd, $ee, $ff
47 bar_table: ; Mask table for BAR
48 .byte %11111111, %00001111, %00000000
50 .byte $00, $10, $20, $30, $40, $50, $60, $70, $80, $90, $A0, $B0, $C0, $D0, $E0, $F0
54 ; ******************************************************************************
58 ; ----------------------------------------------------------------------
60 ; SETPALETTE: Set the palette (in ptr1)
62 ; ----------------------------------------------------------------------
71 .include "atari_tgi_common.inc"