Minor optimization and new macro: waitRTC (not used yet)

This commit is contained in:
Pecusx
2023-01-15 20:47:10 +01:00
parent e9ec39005f
commit 9ec78928f1
6 changed files with 14 additions and 2 deletions
+6
View File
@@ -91,6 +91,12 @@
bcs ?WFRAME
?nowait
.ENDM
;-------------------------------------
.macro waitRTC
lda RTCLOK+1
?wa cmp RTCLOK+1
beq ?wa
.endm
;-------------------------------------
.macro negw
; negate the given word (0-a)
+6
View File
@@ -90,6 +90,12 @@
bcs ?WFRAME
?nowait
.ENDM
;-------------------------------------
.macro waitRTC
lda RTCLOK+2
?wa cmp RTCLOK+2
beq ?wa
.endm
;-------------------------------------
.macro negw
; negate the given word (0-a)
+1 -1
View File
@@ -1897,7 +1897,7 @@ MakeDarkScreen
and #%00000101 ; Start + Option
sne:mva #$40 escFlag
and #%00000001 ; START KEY
seq:wait
seq:wait ; or waitRTC ?
rts
.endp
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -1149,7 +1149,7 @@ afterInventory
jsr MakeDarkScreen
jsr DisplayStatus
jsr SetMainScreen
jsr WaitOneFrame
;jsr WaitOneFrame ; not necessary
jsr DrawTanks
bit SpyHardFlag
bpl NoSpyHard