diff options
author | B. Watson <yalhcru@gmail.com> | 2016-01-01 07:49:05 -0500 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2016-01-01 07:49:05 -0500 |
commit | 1a94716516d3786acd1eb34193aafcab2e2dea31 (patch) | |
tree | fbdab63dd16ba22d95994f579e9ce2332dd03ebb | |
parent | eb26be6238c9d9254dbd7b01844e9f0b2a674a93 (diff) | |
download | taipan-1a94716516d3786acd1eb34193aafcab2e2dea31.tar.gz |
avoid graphics glitch
-rw-r--r-- | newtitle.s | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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 |