1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-23 04:30:10 +00:00

Changed prefix SWL_ to SER_

This commit is contained in:
Olli Savia 2018-11-26 21:31:12 +02:00 committed by Oliver Schmidt
parent aeff90ca90
commit 7b4807a8f7

View File

@ -46,15 +46,15 @@
; Jump table
.word SWL_INSTALL
.word SWL_UNINSTALL
.word SWL_OPEN
.word SWL_CLOSE
.word SWL_GET
.word SWL_PUT
.word SWL_STATUS
.word SWL_IOCTL
.word SWL_IRQ
.word SER_INSTALL
.word SER_UNINSTALL
.word SER_OPEN
.word SER_CLOSE
.word SER_GET
.word SER_PUT
.word SER_STATUS
.word SER_IOCTL
.word SER_IRQ
;----------------------------------------------------------------------------
; I/O definitions
@ -137,11 +137,11 @@ ParityTable:
.code
;----------------------------------------------------------------------------
; SWL_INSTALL routine. Is called after the driver is loaded into memory. If
; SER_INSTALL routine. Is called after the driver is loaded into memory. If
; possible, check if the hardware is present.
; Must return an SER_ERR_xx code in a/x.
SWL_INSTALL:
SER_INSTALL:
; Deactivate DTR and disable 6551 interrupts
@ -166,10 +166,10 @@ SetNMI: sta NMIVec
rts
;----------------------------------------------------------------------------
; SWL_UNINSTALL routine. Is called before the driver is removed from memory.
; SER_UNINSTALL routine. Is called before the driver is removed from memory.
; Must return an SER_ERR_xx code in a/x.
SWL_UNINSTALL:
SER_UNINSTALL:
; Stop interrupts, drop DTR
@ -186,7 +186,7 @@ SWL_UNINSTALL:
; PARAMS routine. A pointer to a ser_params structure is passed in ptr1.
; Must return an SER_ERR_xx code in a/x.
SWL_OPEN:
SER_OPEN:
; Check if the handshake setting is valid
@ -257,11 +257,11 @@ InvBaud:
rts
;----------------------------------------------------------------------------
; SWL_CLOSE: Close the port, disable interrupts and flush the buffer. Called
; SER_CLOSE: Close the port, disable interrupts and flush the buffer. Called
; without parameters. Must return an error code in a/x.
;
SWL_CLOSE:
SER_CLOSE:
; Stop interrupts, drop DTR
@ -279,12 +279,12 @@ SWL_CLOSE:
rts
;----------------------------------------------------------------------------
; SWL_GET: Will fetch a character from the receive buffer and store it into the
; SER_GET: Will fetch a character from the receive buffer and store it into the
; variable pointer to by ptr1. If no data is available, SER_ERR_NO_DATA is
; return.
;
SWL_GET:
SER_GET:
ldx SendFreeCnt ; Send data if necessary
inx ; X == $FF?
beq @L1
@ -324,11 +324,11 @@ SWL_GET:
rts
;----------------------------------------------------------------------------
; SWL_PUT: Output character in A.
; SER_PUT: Output character in A.
; Must return an error code in a/x.
;
SWL_PUT:
SER_PUT:
; Try to send
@ -358,11 +358,11 @@ SWL_PUT:
rts
;----------------------------------------------------------------------------
; SWL_STATUS: Return the status in the variable pointed to by ptr1.
; SER_STATUS: Return the status in the variable pointed to by ptr1.
; Must return an error code in a/x.
;
SWL_STATUS:
SER_STATUS:
lda ACIA_STATUS
ldx #0
sta (ptr1,x)
@ -370,21 +370,21 @@ SWL_STATUS:
rts
;----------------------------------------------------------------------------
; SWL_IOCTL: Driver defined entry point. The wrapper will pass a pointer to ioctl
; SER_IOCTL: Driver defined entry point. The wrapper will pass a pointer to ioctl
; specific data in ptr1, and the ioctl code in A.
; Must return an error code in a/x.
;
SWL_IOCTL:
SER_IOCTL:
lda #<SER_ERR_INV_IOCTL ; We don't support ioclts for now
ldx #>SER_ERR_INV_IOCTL
rts
;----------------------------------------------------------------------------
; SWL_IRQ: Not used on the C64
; SER_IRQ: Not used on the C64
;
SWL_IRQ = $0000
SER_IRQ = $0000
;----------------------------------------------------------------------------
;