mirror of
https://github.com/cc65/cc65.git
synced 2025-04-02 09:29:35 +00:00
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:
parent
51c31b7ab6
commit
ebba65b0b3
@ -21,7 +21,6 @@
|
||||
|
||||
.proc rwcommon
|
||||
|
||||
jsr popax ; Get count
|
||||
eor #$FF
|
||||
sta ptr1
|
||||
txa
|
||||
|
@ -86,8 +86,7 @@
|
||||
|
||||
; Call read(). This will leave the original 3 params on the stack
|
||||
|
||||
@L3: jsr pushax
|
||||
jsr _read
|
||||
@L3: jsr _read
|
||||
|
||||
; Check for errors in read
|
||||
|
||||
|
@ -86,8 +86,7 @@
|
||||
|
||||
; Call write(). This will leave the original 3 params on the stack
|
||||
|
||||
@L3: jsr pushax
|
||||
jsr _write
|
||||
@L3: jsr _write
|
||||
|
||||
; Check for errors in write
|
||||
|
||||
|
@ -158,7 +158,6 @@ ReadByte:
|
||||
ReadAndCheckError:
|
||||
sta ReadSize
|
||||
stx ReadSize+1
|
||||
jsr pushax
|
||||
jsr Read
|
||||
|
||||
; Check the return code and bail out in case of problems
|
||||
|
Loading…
x
Reference in New Issue
Block a user