]> git.sur5r.net Git - cc65/commitdiff
Inline InitBuffers
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 5 May 2005 10:32:06 +0000 (10:32 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 5 May 2005 10:32:06 +0000 (10:32 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@3503 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/cbm510/cbm510-stdser.s
libsrc/cbm610/cbm610-stdser.s
libsrc/plus4/plus4-stdser.s

index 8de683b609c9f77d430a5d5096bc90945e3750ac..712fe05883e93b487df807e907d4d4d28eb476ca 100644 (file)
@@ -161,7 +161,15 @@ OPEN:
 
 ; Initialize buffers
 
-        jsr     InitBuffers
+        ldx    #0
+        stx     Stopped
+               stx     RecvHead
+       stx     RecvTail
+       stx     SendHead
+       stx     SendTail
+        dex                             ; X = 255
+               stx     RecvFreeCnt
+       stx     SendFreeCnt
 
 ; Set the value for the control register, which contains stop bits, word
 ; length and the baud rate.
@@ -408,21 +416,6 @@ IRQ:    lda     #$0F
 .endproc
 
 
-;----------------------------------------------------------------------------
-; Initialize buffers
-
-InitBuffers:
-        ldx    #0
-        stx     Stopped
-               stx     RecvHead
-       stx     RecvTail
-       stx     SendHead
-       stx     SendTail
-        dex                             ; X = 255
-               stx     RecvFreeCnt
-       stx     SendFreeCnt
-        rts
-
 ;----------------------------------------------------------------------------
 ; Write to the ACIA changing the indirect segment. Offset is in Y, value in A.
 
index c0840d52bb4c52f3b2048599d38d5cf8b466e35d..563083267f79abfaa74c75f10a066b6b2dd7bf98 100644 (file)
@@ -162,7 +162,15 @@ OPEN:
 
 ; Initialize buffers
 
-        jsr     InitBuffers
+        ldx    #0
+        stx     Stopped
+               stx     RecvHead
+       stx     RecvTail
+       stx     SendHead
+       stx     SendTail
+        dex                             ; X = 255
+               stx     RecvFreeCnt
+       stx     SendFreeCnt
 
 ; Set the value for the control register, which contains stop bits, word
 ; length and the baud rate.
@@ -409,21 +417,6 @@ IRQ:    lda     #$0F
 .endproc
 
 
-;----------------------------------------------------------------------------
-; Initialize buffers
-
-InitBuffers:
-        ldx    #0
-        stx     Stopped
-               stx     RecvHead
-       stx     RecvTail
-       stx     SendHead
-       stx     SendTail
-        dex                             ; X = 255
-               stx     RecvFreeCnt
-       stx     SendFreeCnt
-        rts
-
 ;----------------------------------------------------------------------------
 ; Write to the ACIA changing the indirect segment. Offset is in Y, value in A.
 
index 906a056d08033b1bfa8e15dbab77a2d66f2ef374..30569a31fdfc9a4b786c9bf8d103249573c28fca 100644 (file)
@@ -170,7 +170,15 @@ OPEN:
 
 ; Initialize buffers
 
-        jsr     InitBuffers
+        ldx    #0
+        stx     Stopped
+               stx     RecvHead
+       stx     RecvTail
+       stx     SendHead
+       stx     SendTail
+        dex                             ; X = 255
+               stx     RecvFreeCnt
+       stx     SendFreeCnt
 
 ; Set the value for the control register, which contains stop bits, word
 ; length and the baud rate.
@@ -393,18 +401,3 @@ IRQ:    lda        ACIA_STATUS     ; Check ACIA status for receive interrupt
 .endproc
 
 
-;----------------------------------------------------------------------------
-; Initialize buffers
-
-InitBuffers:
-        ldx    #0
-        stx     Stopped
-               stx     RecvHead
-       stx     RecvTail
-       stx     SendHead
-       stx     SendTail
-        dex                             ; X = 255
-               stx     RecvFreeCnt
-       stx     SendFreeCnt
-        rts
-