Make read and write __fastcall__
git-svn-id: svn://svn.cc65.org/cc65/trunk@1711 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -21,7 +21,6 @@
|
|||||||
|
|
||||||
.proc rwcommon
|
.proc rwcommon
|
||||||
|
|
||||||
jsr popax ; Get count
|
|
||||||
eor #$FF
|
eor #$FF
|
||||||
sta ptr1
|
sta ptr1
|
||||||
txa
|
txa
|
||||||
|
|||||||
@@ -86,8 +86,7 @@
|
|||||||
|
|
||||||
; Call read(). This will leave the original 3 params on the stack
|
; Call read(). This will leave the original 3 params on the stack
|
||||||
|
|
||||||
@L3: jsr pushax
|
@L3: jsr _read
|
||||||
jsr _read
|
|
||||||
|
|
||||||
; Check for errors in read
|
; Check for errors in read
|
||||||
|
|
||||||
|
|||||||
@@ -86,8 +86,7 @@
|
|||||||
|
|
||||||
; Call write(). This will leave the original 3 params on the stack
|
; Call write(). This will leave the original 3 params on the stack
|
||||||
|
|
||||||
@L3: jsr pushax
|
@L3: jsr _write
|
||||||
jsr _write
|
|
||||||
|
|
||||||
; Check for errors in write
|
; Check for errors in write
|
||||||
|
|
||||||
|
|||||||
@@ -158,7 +158,6 @@ ReadByte:
|
|||||||
ReadAndCheckError:
|
ReadAndCheckError:
|
||||||
sta ReadSize
|
sta ReadSize
|
||||||
stx ReadSize+1
|
stx ReadSize+1
|
||||||
jsr pushax
|
|
||||||
jsr Read
|
jsr Read
|
||||||
|
|
||||||
; Check the return code and bail out in case of problems
|
; Check the return code and bail out in case of problems
|
||||||
|
|||||||
Reference in New Issue
Block a user