]> git.sur5r.net Git - cc65/commitdiff
Make read and write __fastcall__
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 3 Dec 2002 22:31:06 +0000 (22:31 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 3 Dec 2002 22:31:06 +0000 (22:31 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@1711 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/cbm/rwcommon.s
libsrc/common/fread.s
libsrc/common/fwrite.s
libsrc/common/modload.s

index 2b6a3325743362924e0fb4bde505a234a3116d9e..215ddc9aab59ee0e248ab319e9acf0df4055dec6 100644 (file)
@@ -21,7 +21,6 @@
 
 .proc   rwcommon
 
-        jsr     popax           ; Get count
         eor     #$FF
         sta     ptr1
         txa
index bcad7f9b7374660f3c81605abad92c557aa9247a..9ef6a7c4b345bd2cef215701a7160cae20f18a0f 100644 (file)
@@ -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
 
index 31e3e5e962757729367221bee3bc97be04deaaad..c3ffd8fc32e3407d1d91d7b9f2151cd5fdbd0772 100644 (file)
@@ -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
 
index 4385b1a08260bdfd7da05ef5e623c685d73d7273..133b9c19dd808f2142a4ae51cc742d93ec2a55da 100644 (file)
@@ -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