mirror of
https://github.com/cc65/cc65.git
synced 2025-01-26 02:30:17 +00:00
Revert
This commit is contained in:
parent
6ed57af9fd
commit
29881fb7c9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user