number of shells in inventory #26

This commit is contained in:
2022-06-13 01:35:57 -04:00
parent 83e128a1b5
commit ff8c4d9329
2 changed files with 9 additions and 6 deletions
BIN
View File
Binary file not shown.
+9 -6
View File
@@ -355,12 +355,6 @@ CreateList
sta decimal+1
jsr displaydec
lda temp ; weapon index again
jsr HowManyBullets
sta decimal
adw xbyte #1 displayposition
jsr displaybyte
jmp notInventory
itIsInventory
@@ -389,6 +383,15 @@ itIsInventory
bne @-
notInventory
; number of posessed shells
lda temp ; weapon index again
jsr HowManyBullets
sta decimal
adw xbyte #1 displayposition
jsr displaybyte
ldx temp ;weapon index
; now symbol of the weapon
lda WeaponSymbols,x