;
; Graphics driver for the 320x200x2 mode on the C64.
;
-; Based on Stephen L. Judds GRLIB code
+; Based on Stephen L. Judd's GRLIB code.
+;
+; 2017-01-13, Greg King
;
.include "zeropage.inc"
.include "tgi-kernel.inc"
.include "tgi-error.inc"
-
.macpack generic
+ .macpack module
; ------------------------------------------------------------------------
; Header. Includes jump table and constants.
-.segment "HEADER"
+ module_header _c64_hi_tgi
; First part of the header is a structure that has a magic and defines the
; capabilities of the driver
.addr BAR
.addr TEXTSTYLE
.addr OUTTEXT
- .addr 0 ; IRQ entry is unused
; ------------------------------------------------------------------------
; Data.
@L2: sta CBASE+$0000,y
sta CBASE+$0100,y
sta CBASE+$0200,y
- sta CBASE+$0300,y
+ sta CBASE+$02e8,y
iny
bne @L2
pla
OUTTEXT:
; Calculate a pointer to the representation of the character in the
-; character ROM
+; character ROM
ldx #((>(CHARROM + $0800)) >> 3)
ldy #0
lda #00
@L9: sta INRANGE
rts
-
-