Spaces in tank names #120

This commit is contained in:
Pecusx
2022-08-18 13:48:36 +02:00
parent 316cf9569f
commit 39463ed0bb
3 changed files with 10 additions and 4 deletions
+1 -1
View File
@@ -593,7 +593,7 @@ keycodes ;tables for converting KeyCode to Screen Code (38 -1 characters)
.by $0d,$01,$05,$00,$25,$23,$08,$0a .by $0d,$01,$05,$00,$25,$23,$08,$0a
.by $2f,$28,$3e,$2d,$0b,$10,$2e,$16 .by $2f,$28,$3e,$2d,$0b,$10,$2e,$16
.by $2b,$17,$1f,$1e,$1a,$18,$1d,$1b .by $2b,$17,$1f,$1e,$1a,$18,$1d,$1b
.by $33,$35,$30,$32,$22 ;,$0e <-- hyphen removed from the table, sorry hyphen lovers .by $33,$35,$30,$32,$22,$21 ;,$0e <-- hyphen removed from the table, sorry hyphen lovers
keycodesEnd keycodesEnd
scrcodes scrcodes
dta d"abcdefgh" dta d"abcdefgh"
BIN
View File
Binary file not shown.
+7 -1
View File
@@ -1096,7 +1096,7 @@ NoArrowDown
ldy #0 ldy #0
@ lda TanksNames,x @ lda TanksNames,x
beq endOfTankName ; beq endOfTankName
sta NameAdr,y sta NameAdr,y
inx inx
iny iny
@@ -1104,6 +1104,12 @@ NoArrowDown
bne @- bne @-
endOfTankName endOfTankName
@ lda NameAdr,y
bne LastNameChar
dey
bpl @-
LastNameChar
iny
lda #$80 ; place cursor on the end lda #$80 ; place cursor on the end
sta NameAdr,y sta NameAdr,y