Revert
This commit is contained in:
@@ -173,16 +173,13 @@
|
|||||||
|
|
||||||
; Read was ok, account for the pushed back character (if any).
|
; Read was ok, account for the pushed back character (if any).
|
||||||
|
|
||||||
@L8:
|
@L8: add pb
|
||||||
add pb
|
|
||||||
bcc @L9
|
bcc @L9
|
||||||
inx
|
inx
|
||||||
|
|
||||||
; Check for end of file.
|
; Check for end of file.
|
||||||
|
|
||||||
@L9:
|
@L9: cmp #0 ; Zero bytes read?
|
||||||
|
|
||||||
cmp #0 ; Zero bytes read?
|
|
||||||
bne @L10
|
bne @L10
|
||||||
cpx #0
|
cpx #0
|
||||||
bne @L10
|
bne @L10
|
||||||
@@ -195,10 +192,7 @@
|
|||||||
; Return the number of items successfully read. Since we've checked for
|
; 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.
|
; bytes == 0 above, size cannot be zero here, so the division is safe.
|
||||||
|
|
||||||
@L10:
|
@L10: jsr pushax ; Push number of bytes read
|
||||||
|
|
||||||
|
|
||||||
jsr pushax ; Push number of bytes read
|
|
||||||
ldy #5
|
ldy #5
|
||||||
jsr ldaxysp ; Get size
|
jsr ldaxysp ; Get size
|
||||||
jsr tosudivax ; bytes / size -> a/x
|
jsr tosudivax ; bytes / size -> a/x
|
||||||
|
|||||||
Reference in New Issue
Block a user