From c95bfc19fbe2591d203f6962fa33e9a9e32a6ee0 Mon Sep 17 00:00:00 2001 From: Stephen Heumann Date: Tue, 28 Jun 2022 22:25:10 -0500 Subject: [PATCH] Fix a logic error. There was a problem with the fix in commit 0047b755c9660: an instruction should have had an immediate operand, but did not because it was missing the #. This might cause the code to behave incorrectly, depending on memory contents. --- stdio.asm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdio.asm b/stdio.asm index 04d723c..8d3ce54 100644 --- a/stdio.asm +++ b/stdio.asm @@ -4529,7 +4529,7 @@ orVal ds 2 for setting the case of characters sta [stream],Y ldy #FILE_flag if read stream lda [stream],Y - bit _IOREAD + bit #_IOREAD beq ib1 lda #0 set count of chars in buffer to 0 tax