mirror of
https://github.com/Pecusx/scorch_src.git
synced 2026-05-20 22:33:43 +02:00
Opty - thanks @Irgendwer
This commit is contained in:
+5
-4
@@ -463,20 +463,21 @@ Fast ; Put char without coordinates check!
|
|||||||
|
|
||||||
; and 8 bytes to the table
|
; and 8 bytes to the table
|
||||||
ldy #7
|
ldy #7
|
||||||
|
ldx #$ff ; otimization - thanks @Irgendwer
|
||||||
CopyChar
|
CopyChar
|
||||||
|
txa ; $ff
|
||||||
|
sta char2,y
|
||||||
lda (fontind),y
|
lda (fontind),y
|
||||||
eor #$ff
|
eor #$ff
|
||||||
sta char1,y
|
sta char1,y
|
||||||
lda #$ff
|
|
||||||
sta char2,y
|
|
||||||
dey
|
dey
|
||||||
bpl CopyChar
|
bpl CopyChar
|
||||||
; and 8 subsequent bytes as a mask
|
; and 8 subsequent bytes as a mask
|
||||||
adw fontind #8
|
adw fontind #8
|
||||||
ldy #7
|
ldy #7
|
||||||
CopyMask
|
CopyMask
|
||||||
lda (fontind),y
|
txa ; $ff
|
||||||
eor #$ff
|
eor (fontind),y
|
||||||
sta mask1,y
|
sta mask1,y
|
||||||
lda #$00
|
lda #$00
|
||||||
sta mask2,y
|
sta mask2,y
|
||||||
|
|||||||
+5
-4
@@ -344,20 +344,21 @@ Fast ; Put char without coordinates check!
|
|||||||
|
|
||||||
; and 8 bytes to the table
|
; and 8 bytes to the table
|
||||||
ldy #7
|
ldy #7
|
||||||
|
ldx #$ff ; otimization - thanks @Irgendwer
|
||||||
CopyChar
|
CopyChar
|
||||||
|
txa ; $ff
|
||||||
|
sta char2,y
|
||||||
lda (fontind),y
|
lda (fontind),y
|
||||||
eor #$ff
|
eor #$ff
|
||||||
sta char1,y
|
sta char1,y
|
||||||
lda #$ff
|
|
||||||
sta char2,y
|
|
||||||
dey
|
dey
|
||||||
bpl CopyChar
|
bpl CopyChar
|
||||||
; and 8 subsequent bytes as a mask
|
; and 8 subsequent bytes as a mask
|
||||||
adw fontind #8
|
adw fontind #8
|
||||||
ldy #7
|
ldy #7
|
||||||
CopyMask
|
CopyMask
|
||||||
lda (fontind),y
|
txa ; $ff
|
||||||
eor #$ff
|
eor (fontind),y
|
||||||
sta mask1,y
|
sta mask1,y
|
||||||
lda #$00
|
lda #$00
|
||||||
sta mask2,y
|
sta mask2,y
|
||||||
|
|||||||
+4
-2
@@ -584,11 +584,14 @@ UnequalTanks
|
|||||||
;-------------------------------------------------
|
;-------------------------------------------------
|
||||||
.proc ClearTanks
|
.proc ClearTanks
|
||||||
jsr PMoutofScreen
|
jsr PMoutofScreen
|
||||||
mva #1 Erase ; erase tanks flag
|
lda #1 ; erase tanks flag
|
||||||
|
bne drawtanks.era
|
||||||
.endp
|
.endp
|
||||||
;-------------------------------------------------
|
;-------------------------------------------------
|
||||||
.proc drawtanks
|
.proc drawtanks
|
||||||
;-------------------------------------------------
|
;-------------------------------------------------
|
||||||
|
lda #0 ; no erase tanks flag
|
||||||
|
era sta Erase
|
||||||
lda TankNr
|
lda TankNr
|
||||||
pha
|
pha
|
||||||
ldx #$00
|
ldx #$00
|
||||||
@@ -604,7 +607,6 @@ DrawNextTank
|
|||||||
pla
|
pla
|
||||||
sta TankNr
|
sta TankNr
|
||||||
|
|
||||||
mva #0 Erase ; no erase tanks flag
|
|
||||||
rts
|
rts
|
||||||
.endp
|
.endp
|
||||||
;---------
|
;---------
|
||||||
|
|||||||
BIN
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user