Macro "wait" optimization, and better credits

This commit is contained in:
Pecusx
2023-01-19 19:46:06 +01:00
parent 79b5bc3290
commit 4088e5f8fa
5 changed files with 25 additions and 32 deletions
+10 -15
View File
@@ -74,23 +74,18 @@
.ENDM
;-------------------------------------
.MACRO WAIT
.MACRO WAIT
; WAIT
; waits one frame (1/50 s(PAL) or 1/60s(NTSC))
?zero LDA VCOUNT
cmp #$05
bcc ?zero
cmp #$70
bcc ?WA
sbc #10 ; last lines correction
?WA cmp VCOUNT
beq ?WA
bcc ?WA
?WFRAME cmp VCOUNT
beq ?nowait
bcs ?WFRAME
?nowait
.ENDM
?ze LDA VCOUNT
cmp #16 ; if line<16 then wait for line>15 (long VBI protection)
bcc ?ze
sbc #10 ; last lines correction
?wa cmp VCOUNT
bcc ?wa
?wf cmp VCOUNT
bcs ?wf
.ENDM
;-------------------------------------
.macro waitRTC
lda RTCLOK+1