mirror of
https://github.com/Pecusx/scorch_src.git
synced 2026-05-20 22:33:43 +02:00
WaitOneFrame fixed
This commit is contained in:
+2
-3
@@ -76,11 +76,10 @@
|
|||||||
.MACRO WAIT
|
.MACRO WAIT
|
||||||
; WAIT
|
; WAIT
|
||||||
; waits one frame (1/50 s(PAL) or 1/60s(NTSC))
|
; waits one frame (1/50 s(PAL) or 1/60s(NTSC))
|
||||||
lda CONSOL
|
|
||||||
cmp #6 ; START KEY
|
|
||||||
beq ?nowait
|
|
||||||
?zero LDA VCOUNT
|
?zero LDA VCOUNT
|
||||||
beq ?zero
|
beq ?zero
|
||||||
|
bpl ?WA
|
||||||
|
sbc #10 ; last lines correction
|
||||||
?WA cmp VCOUNT
|
?WA cmp VCOUNT
|
||||||
beq ?WA
|
beq ?WA
|
||||||
bcc ?WA
|
bcc ?WA
|
||||||
|
|||||||
+4
-1
@@ -1518,8 +1518,11 @@ noKey
|
|||||||
rts
|
rts
|
||||||
.endp
|
.endp
|
||||||
.proc WaitOneFrame
|
.proc WaitOneFrame
|
||||||
|
lda CONSOL
|
||||||
|
cmp #6 ; START KEY
|
||||||
|
beq @+
|
||||||
wait
|
wait
|
||||||
rts
|
@ rts
|
||||||
.endp
|
.endp
|
||||||
.proc PauseYFrames
|
.proc PauseYFrames
|
||||||
; Y - number of frames to wait (divided by 2)
|
; Y - number of frames to wait (divided by 2)
|
||||||
|
|||||||
BIN
Binary file not shown.
Reference in New Issue
Block a user