TGI drivers updated for current API (INIT call has changed)

git-svn-id: svn://svn.cc65.org/cc65/trunk@1873 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
izydorst
2003-01-02 22:18:30 +00:00
parent d080ca253f
commit a6888c5e46
5 changed files with 34 additions and 19 deletions

View File

@@ -170,14 +170,11 @@ DEINSTALL:
; Must set an error code: YES
;
INIT: cmp #TGI_MODE_320_200_2 ; Correct mode?
beq @L1 ; Jump if yes
lda #TGI_ERR_INV_MODE ; ## Error
bne @L9
INIT:
; Initialize variables
@L1: ldx #$FF
ldx #$FF
stx BITMASK
; Switch into graphics mode
@@ -201,7 +198,7 @@ INIT: cmp #TGI_MODE_320_200_2 ; Correct mode?
; Done, reset the error code
lda #TGI_ERR_OK
@L9: sta ERROR
sta ERROR
rts
; ------------------------------------------------------------------------