Macro "wait" as procedure.

This commit is contained in:
Pecusx
2022-08-05 17:13:13 +02:00
parent d448eb2e1e
commit 2bec64c38e
4 changed files with 10 additions and 7 deletions
+1 -1
View File
@@ -1085,7 +1085,7 @@ EndOfFCycle
; here we draw parachute ; here we draw parachute
ldx TankNr ldx TankNr
jsr DrawTankParachute jsr DrawTankParachute
wait ; onli if tank with patachute jsr WaitOneFrame ; onli if tank with patachute
RapidFalling RapidFalling
DoNotDrawParachute DoNotDrawParachute
lda EndOfTheFallFlag lda EndOfTheFallFlag
+4 -1
View File
@@ -1441,7 +1441,10 @@ peopleAreHere
noKey noKey
rts rts
.endp .endp
.proc WaitOneFrame
wait
rts
.endp
;-------------------------------------------------- ;--------------------------------------------------
.proc RmtSongSelect .proc RmtSongSelect
;-------------------------------------------------- ;--------------------------------------------------
BIN
View File
Binary file not shown.
+5 -5
View File
@@ -893,8 +893,8 @@ Rollin
sta HeightRol ; relative point sta HeightRol ; relative point
RollinContinues RollinContinues
wait jsr WaitOneFrame
wait jsr WaitOneFrame
; new point is set ; new point is set
adw xdraw #mountaintable tempXROLLER adw xdraw #mountaintable tempXROLLER
ldy #0 ldy #0
@@ -1031,7 +1031,7 @@ NoColor ; jump here with color=0 to clean dirt
; current dirt width ; current dirt width
sta magic sta magic
NextRow NextRow
wait jsr WaitOneFrame
ldy magic ldy magic
NextLine NextLine
lda random lda random
@@ -1168,7 +1168,7 @@ ContinueToCheckMaxForce2
jsr DrawTankNr jsr DrawTankNr
wait ; best after drawing a tank jsr WaitOneFrame ; best after drawing a tank
@@ -2360,7 +2360,7 @@ NextLine1
dex dex
bpl NextLine1 bpl NextLine1
; ;
wait ; wait uses A and Y jsr WaitOneFrame ; wait uses A only
; second loop - inverse again and put random "snow" to column of bytes ; second loop - inverse again and put random "snow" to column of bytes
ldx #120 ldx #120
ldy magic ldy magic