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"Beeblebrox, KrzysRog, lopezpb, Dracon",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
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"*
.ELSE
dta d" "*
.ENDIF
dta d" "*
dta d"Additional testin",d"g"*
+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
+10 -15
View File
@@ -73,23 +73,18 @@
PLA
.ENDM
;-------------------------------------
.MACRO WAIT
.MACRO WAIT
; WAIT
; waits one frame (1/50 s(PAL) or 1/60s(NTSC))
?zero LDA VCOUNT
cmp #$05 ; if line<5 then wait for line>4
bcc ?zero
cmp #$70
bcc ?WA ; if line>=112 then
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+2
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.