Small optimization (better AI numbers)

This commit is contained in:
Pecusx
2023-05-04 08:57:30 +02:00
parent 74df612e67
commit cf00674136
3 changed files with 8 additions and 10 deletions
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+8 -10
View File
@@ -2047,14 +2047,21 @@ NextChar02
iny iny
cpy #$08 cpy #$08
bne NextChar02 bne NextChar02
; memory !!!! ;=========================
; displaying number of active controller port or AI level
;=========================
ldx TankNr ldx TankNr
ldy #$5e ; Computer symbol ldy #$5e ; Computer symbol
lda SkillTable,x lda SkillTable,x
tax
bne ThisIsAI bne ThisIsAI
ldy #$0a ; Joystick symbol ldy #$0a ; Joystick symbol
ldx JoystickNumber
inx ; tricky
ThisIsAI ThisIsAI
sty statusBuffer+16 sty statusBuffer+16
lda digits,x
sta statusBuffer+17
; rts ; rts
.endp .endp
;------------------------------------------------- ;-------------------------------------------------
@@ -2062,15 +2069,6 @@ ThisIsAI
;------------------------------------------------- ;-------------------------------------------------
ldx TankNr ldx TankNr
;=========================
; displaying number of active controller port
;=========================
ldy SkillTable,x
bne LevelOfAI
ldy JoystickNumber
LevelOfAI
lda digits+1,y
sta statusBuffer+17
;========================= ;=========================
;displaying symbol of the weapon ;displaying symbol of the weapon