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"*
+10 -15
View File
@@ -74,23 +74,18 @@
.ENDM .ENDM
;------------------------------------- ;-------------------------------------
.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 sbc #10 ; last lines correction
bcc ?WA ?wa cmp VCOUNT
sbc #10 ; last lines correction bcc ?wa
?WA cmp VCOUNT ?wf cmp VCOUNT
beq ?WA bcs ?wf
bcc ?WA .ENDM
?WFRAME cmp VCOUNT
beq ?nowait
bcs ?WFRAME
?nowait
.ENDM
;------------------------------------- ;-------------------------------------
.macro waitRTC .macro waitRTC
lda RTCLOK+1 lda RTCLOK+1
+10 -15
View File
@@ -73,23 +73,18 @@
PLA PLA
.ENDM .ENDM
;------------------------------------- ;-------------------------------------
.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 sbc #10 ; last lines correction
bcc ?WA ; if line>=112 then ?wa cmp VCOUNT
sbc #10 ; last lines correction bcc ?wa
?WA cmp VCOUNT ?wf cmp VCOUNT
beq ?WA bcs ?wf
bcc ?WA .ENDM
?WFRAME cmp VCOUNT
beq ?nowait
bcs ?WFRAME
?nowait
.ENDM
;------------------------------------- ;-------------------------------------
.macro waitRTC .macro waitRTC
lda RTCLOK+2 lda RTCLOK+2
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.