diff --git a/libsrc/cbm510/cbm510-stdser.s b/libsrc/cbm510/cbm510-stdser.s index 8de683b60..712fe0588 100644 --- a/libsrc/cbm510/cbm510-stdser.s +++ b/libsrc/cbm510/cbm510-stdser.s @@ -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. diff --git a/libsrc/cbm610/cbm610-stdser.s b/libsrc/cbm610/cbm610-stdser.s index c0840d52b..563083267 100644 --- a/libsrc/cbm610/cbm610-stdser.s +++ b/libsrc/cbm610/cbm610-stdser.s @@ -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. diff --git a/libsrc/plus4/plus4-stdser.s b/libsrc/plus4/plus4-stdser.s index 906a056d0..30569a31f 100644 --- a/libsrc/plus4/plus4-stdser.s +++ b/libsrc/plus4/plus4-stdser.s @@ -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 -