Another smol opty

This commit is contained in:
Pecusx
2023-10-26 20:21:20 +02:00
parent bd6418ce88
commit 2c0132fd9f
2 changed files with 8 additions and 7 deletions
+8 -7
View File
@@ -594,15 +594,15 @@ UnequalTanks
era sta Erase era sta Erase
lda TankNr lda TankNr
pha pha
ldx #$00 ldx NumberOfPlayers
dex
stx TankNr stx TankNr
DrawNextTank DrawNextTank
jsr drawtanknr jsr drawtanknr
inc TankNr dec TankNr
ldx TankNr ldx TankNr
Cpx NumberOfPlayers bpl DrawNextTank
bne DrawNextTank
pla pla
sta TankNr sta TankNr
@@ -611,10 +611,11 @@ DrawNextTank
.endp .endp
;--------- ;---------
ClearTankNr ClearTankNr
mva #1 Erase lda #1 ; erase tank flag
bne DrawTankNr bne @er
PutTankNr PutTankNr
mva #0 Erase lda #0 ; no erase tank flag
@er sta Erase
.proc DrawTankNr .proc DrawTankNr
ldx tankNr ldx tankNr
; let's check the energy ; let's check the energy
BIN
View File
Binary file not shown.