input buffer of length N should never match a game name of length < N

This commit is contained in:
4am 2019-07-04 16:31:28 -04:00
parent c8e9d9ab9d
commit 2d141e20c8

View File

@ -74,6 +74,8 @@ TextRankCallback
ldy #0 ldy #0
lda (zpstring),y lda (zpstring),y
sta gamelength sta gamelength
cmp InputLength
bcc @no
lda #0 lda #0
sta runningscore sta runningscore
sta runningscore+1 sta runningscore+1
@ -91,6 +93,7 @@ TextRankCallback
cpy gamelength cpy gamelength
iny iny
bcc -- bcc --
@no
-- rts ; no match :( -- rts ; no match :(
+ +
ldx #80 ldx #80