From: jede Date: Sun, 29 Jan 2017 21:28:54 +0000 (+0100) Subject: Revert X-Git-Tag: V2.16~47^2~19 X-Git-Url: https://git.sur5r.net/?p=cc65;a=commitdiff_plain;h=29881fb7c920a65004ee45a16e6769147367ce38 Revert --- diff --git a/libsrc/common/fread.s b/libsrc/common/fread.s index b87cc5cb4..91d692985 100644 --- a/libsrc/common/fread.s +++ b/libsrc/common/fread.s @@ -173,16 +173,13 @@ ; Read was ok, account for the pushed back character (if any). -@L8: - add pb +@L8: add pb bcc @L9 inx ; Check for end of file. -@L9: - - cmp #0 ; Zero bytes read? +@L9: cmp #0 ; Zero bytes read? bne @L10 cpx #0 bne @L10 @@ -195,10 +192,7 @@ ; Return the number of items successfully read. Since we've checked for ; bytes == 0 above, size cannot be zero here, so the division is safe. -@L10: - - - jsr pushax ; Push number of bytes read +@L10: jsr pushax ; Push number of bytes read ldy #5 jsr ldaxysp ; Get size jsr tosudivax ; bytes / size -> a/x