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
+5 -2
View File
@@ -626,10 +626,13 @@ CreditsStart
dta d"Bocianu, Probabilitydragon, EnderDude",d","* dta d"Bocianu, Probabilitydragon, EnderDude",d","*
dta d"Beeblebrox, KrzysRog, lopezpb, Dracon",d","* dta d"Beeblebrox, KrzysRog, lopezpb, Dracon",d","*
dta d"brad-colbert, archon800, nowy80",d","* dta d"brad-colbert, archon800, nowy80",d","*
dta d"Shaggy the Atarian, RetroBorsuk, ZP",d"H"* dta d"Shaggy the Atarian, RetroBorsuk, ZPH"
.IF target = 5200 .IF target = 5200
dta d"x-usr(1536), Aking, JAC!, phaero",d"n"* dta d","*
dta d"x-usr(1536), Aking, JAC!, phaeron",d","*
dta d"RB520",d"0"* dta d"RB520",d"0"*
.ELSE
dta d" "*
.ENDIF .ENDIF
dta d" "* dta d" "*
dta d"Additional testin",d"g"* dta d"Additional testin",d"g"*
+7 -12
View File
@@ -77,19 +77,14 @@
.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))
?zero LDA VCOUNT ?ze LDA VCOUNT
cmp #$05 cmp #16 ; if line<16 then wait for line>15 (long VBI protection)
bcc ?zero bcc ?ze
cmp #$70
bcc ?WA
sbc #10 ; last lines correction sbc #10 ; last lines correction
?WA cmp VCOUNT ?wa cmp VCOUNT
beq ?WA bcc ?wa
bcc ?WA ?wf cmp VCOUNT
?WFRAME cmp VCOUNT bcs ?wf
beq ?nowait
bcs ?WFRAME
?nowait
.ENDM .ENDM
;------------------------------------- ;-------------------------------------
.macro waitRTC .macro waitRTC
+7 -12
View File
@@ -76,19 +76,14 @@
.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))
?zero LDA VCOUNT ?ze LDA VCOUNT
cmp #$05 ; if line<5 then wait for line>4 cmp #16 ; if line<16 then wait for line>15 (long VBI protection)
bcc ?zero bcc ?ze
cmp #$70
bcc ?WA ; if line>=112 then
sbc #10 ; last lines correction sbc #10 ; last lines correction
?WA cmp VCOUNT ?wa cmp VCOUNT
beq ?WA bcc ?wa
bcc ?WA ?wf cmp VCOUNT
?WFRAME cmp VCOUNT bcs ?wf
beq ?nowait
bcs ?WFRAME
?nowait
.ENDM .ENDM
;------------------------------------- ;-------------------------------------
.macro waitRTC .macro waitRTC
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.