aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2016-01-01 07:49:05 -0500
committerB. Watson <yalhcru@gmail.com>2016-01-01 07:49:05 -0500
commit1a94716516d3786acd1eb34193aafcab2e2dea31 (patch)
treefbdab63dd16ba22d95994f579e9ce2332dd03ebb
parenteb26be6238c9d9254dbd7b01844e9f0b2a674a93 (diff)
downloadtaipan-1a94716516d3786acd1eb34193aafcab2e2dea31.tar.gz
avoid graphics glitch
-rw-r--r--newtitle.s12
1 files changed, 12 insertions, 0 deletions
diff --git a/newtitle.s b/newtitle.s
index d62a40a..ae54481 100644
--- a/newtitle.s
+++ b/newtitle.s
@@ -28,6 +28,9 @@ start:
lda #0
sta SDMCTL
+ ; wait for the next frame, to avoid graphics glitching
+ jsr wait1jiffy
+
; setup our display list
lda SDLSTL
sta FR0
@@ -64,12 +67,21 @@ wait4key:
lda FR0+1
sta SDLSTH
+ jsr wait1jiffy
+
; switch to normal playfield, enable screen
lda #$22
sta SDMCTL
rts ; return to DOS
+wait1jiffy:
+ lda RTCLOK+2
+wait:
+ cmp RTCLOK+2
+ beq wait
+ rts
+
; display list here
dlist:
.byte $70 ; 24 scanlines of blanks