hgr: vgi: forgot to update for vgi_make_tables

This commit is contained in:
Vince Weaver 2021-07-12 01:14:43 -04:00
parent f6bda77869
commit da6edf2a36
3 changed files with 47 additions and 2 deletions

View File

@ -0,0 +1,45 @@
; Color test
.include "zp.inc"
.include "hardware.inc"
vgi_color_test:
jsr SETGR
jsr HGR
bit FULLGR
jsr vgi_make_tables
; get pointer to image data
lda #<color_test_data
sta VGIL
lda #>color_test_data
sta VGIH
jsr play_vgi
jsr wait_until_keypress
done:
jmp done
.include "vgi_common.s"
.include "color_test.data"
;============================
; WAIT UNTIL KEYPRESS
;============================
wait_until_keypress:
lda KEYPRESS
bpl wait_until_keypress
bit KEYRESET
rts

View File

@ -88,7 +88,7 @@ setup_interrupt:
jsr HOME
; bit FULLGR
jsr make_tables
jsr vgi_make_tables
;============================

View File

@ -9,7 +9,7 @@ vgi_myst:
jsr HGR
bit FULLGR
jsr make_tables
jsr vgi_make_tables
; get pointer to image data