]> git.sur5r.net Git - cc65/blobdiff - libsrc/plus4/plus4-stdser.s
Inline InitBuffers
[cc65] / libsrc / plus4 / plus4-stdser.s
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
-