X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libsrc%2Fcommon%2Fungetc.s;h=386c450a8ee1dbbb4c52ec7be9086bc912113226;hb=f16516047a551319c82debd339ded8bc2b587212;hp=0ad12e3a293ed5222c47e458902d2ce3c53cf14c;hpb=b61b5f3ec5dff431d9b30e2f10d26ef8f0097605;p=cc65 diff --git a/libsrc/common/ungetc.s b/libsrc/common/ungetc.s index 0ad12e3a2..386c450a8 100644 --- a/libsrc/common/ungetc.s +++ b/libsrc/common/ungetc.s @@ -36,10 +36,10 @@ ; Check if the file is open - ldy #_FILE::f_flags - lda (ptr1),y - and #_FOPEN ; Is the file open? - beq error ; Branch if no + ldy #_FILE::f_flags + lda (ptr1),y + and #_FOPEN ; Is the file open? + beq error ; Branch if no ; Set the pushback flag and reset the end-of-file indicator