mirror of
https://github.com/cc65/cc65.git
synced 2025-01-11 11:30:13 +00:00
Inline InitBuffers
git-svn-id: svn://svn.cc65.org/cc65/trunk@3503 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
a170b50687
commit
0fcc998024
@ -161,7 +161,15 @@ OPEN:
|
|||||||
|
|
||||||
; Initialize buffers
|
; 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
|
; Set the value for the control register, which contains stop bits, word
|
||||||
; length and the baud rate.
|
; length and the baud rate.
|
||||||
@ -408,21 +416,6 @@ IRQ: lda #$0F
|
|||||||
.endproc
|
.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.
|
; Write to the ACIA changing the indirect segment. Offset is in Y, value in A.
|
||||||
|
|
||||||
|
@ -162,7 +162,15 @@ OPEN:
|
|||||||
|
|
||||||
; Initialize buffers
|
; 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
|
; Set the value for the control register, which contains stop bits, word
|
||||||
; length and the baud rate.
|
; length and the baud rate.
|
||||||
@ -409,21 +417,6 @@ IRQ: lda #$0F
|
|||||||
.endproc
|
.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.
|
; Write to the ACIA changing the indirect segment. Offset is in Y, value in A.
|
||||||
|
|
||||||
|
@ -170,7 +170,15 @@ OPEN:
|
|||||||
|
|
||||||
; Initialize buffers
|
; 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
|
; Set the value for the control register, which contains stop bits, word
|
||||||
; length and the baud rate.
|
; length and the baud rate.
|
||||||
@ -393,18 +401,3 @@ IRQ: lda ACIA_STATUS ; Check ACIA status for receive interrupt
|
|||||||
.endproc
|
.endproc
|
||||||
|
|
||||||
|
|
||||||
;----------------------------------------------------------------------------
|
|
||||||
; Initialize buffers
|
|
||||||
|
|
||||||
InitBuffers:
|
|
||||||
ldx #0
|
|
||||||
stx Stopped
|
|
||||||
stx RecvHead
|
|
||||||
stx RecvTail
|
|
||||||
stx SendHead
|
|
||||||
stx SendTail
|
|
||||||
dex ; X = 255
|
|
||||||
stx RecvFreeCnt
|
|
||||||
stx SendFreeCnt
|
|
||||||
rts
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user