Opty - thanks @Irgendwer

This commit is contained in:
Pecusx
2023-10-26 19:51:27 +02:00
parent fa43529e92
commit bd6418ce88
5 changed files with 14 additions and 10 deletions
+5 -4
View File
@@ -463,20 +463,21 @@ Fast ; Put char without coordinates check!
; and 8 bytes to the table
ldy #7
ldx #$ff ; otimization - thanks @Irgendwer
CopyChar
txa ; $ff
sta char2,y
lda (fontind),y
eor #$ff
sta char1,y
lda #$ff
sta char2,y
dey
bpl CopyChar
; and 8 subsequent bytes as a mask
adw fontind #8
ldy #7
CopyMask
lda (fontind),y
eor #$ff
txa ; $ff
eor (fontind),y
sta mask1,y
lda #$00
sta mask2,y
+5 -4
View File
@@ -344,20 +344,21 @@ Fast ; Put char without coordinates check!
; and 8 bytes to the table
ldy #7
ldx #$ff ; otimization - thanks @Irgendwer
CopyChar
txa ; $ff
sta char2,y
lda (fontind),y
eor #$ff
sta char1,y
lda #$ff
sta char2,y
dey
bpl CopyChar
; and 8 subsequent bytes as a mask
adw fontind #8
ldy #7
CopyMask
lda (fontind),y
eor #$ff
txa ; $ff
eor (fontind),y
sta mask1,y
lda #$00
sta mask2,y
+4 -2
View File
@@ -584,11 +584,14 @@ UnequalTanks
;-------------------------------------------------
.proc ClearTanks
jsr PMoutofScreen
mva #1 Erase ; erase tanks flag
lda #1 ; erase tanks flag
bne drawtanks.era
.endp
;-------------------------------------------------
.proc drawtanks
;-------------------------------------------------
lda #0 ; no erase tanks flag
era sta Erase
lda TankNr
pha
ldx #$00
@@ -604,7 +607,6 @@ DrawNextTank
pla
sta TankNr
mva #0 Erase ; no erase tanks flag
rts
.endp
;---------
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.