From 2d20af84fdb3209ad541d17b2b76bc1f0d74840c Mon Sep 17 00:00:00 2001 From: Stephen Heumann Date: Sun, 9 Sep 2018 20:55:23 -0500 Subject: [PATCH] Fix support for 'h' length modifier in scanf. This got broken when adding support for 'hh'. --- stdio.asm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdio.asm b/stdio.asm index 56ed281..fecd6f9 100644 --- a/stdio.asm +++ b/stdio.asm @@ -5367,13 +5367,13 @@ fm3 cmp #'h' else if it is an 'h' then lda [format] and #$00FF cmp #'h' - bne fm4 + bne fm6 dec ~size fm4 inc4 format ignore the character fm5 lda [format] find the proper format character and #$00FF - inc4 format +fm6 inc4 format ldx #fListEnd-fList-4 fm7 cmp fList,X beq fm8