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-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, $0F, $01, $02, $03, $04, $05, $06, $07, $08, $09, $0A, $0B, $0C, $0D, $0E
54 ; ******************************************************************************
58 ; ----------------------------------------------------------------------
60 ; SETPALETTE: Set the palette (in ptr1)
62 ; ----------------------------------------------------------------------
71 .include "atari_tgi_common.inc"