mirror of
https://github.com/Pecusx/scorch_src.git
synced 2026-05-20 22:33:43 +02:00
Wait macro for C64
This commit is contained in:
+12
-3
@@ -278,9 +278,18 @@ upstartEnd
|
|||||||
tay
|
tay
|
||||||
.endm
|
.endm
|
||||||
;-------------------------------------
|
;-------------------------------------
|
||||||
.macro wait
|
.MACRO WAIT
|
||||||
nop
|
; WAIT
|
||||||
.endm
|
; waits one frame (1/50 s(PAL) or 1/60s(NTSC))
|
||||||
|
?ze LDA $D012
|
||||||
|
cmp #16 ; if line<16 then wait for line>15 (long VBI protection)
|
||||||
|
bcc ?ze
|
||||||
|
sbc #10 ; last lines correction
|
||||||
|
?wa cmp $D012
|
||||||
|
bcc ?wa
|
||||||
|
?wf cmp $D012
|
||||||
|
bcs ?wf
|
||||||
|
.ENDM
|
||||||
;-------------------------------------
|
;-------------------------------------
|
||||||
.macro halt
|
.macro halt
|
||||||
?s jmp ?s
|
?s jmp ?s
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user