mirror of
https://github.com/cc65/cc65.git
synced 2024-12-21 20:29:24 +00:00
Working on the new serial code
git-svn-id: svn://svn.cc65.org/cc65/trunk@2070 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
a07cc4a4c1
commit
fa849031d8
@ -45,6 +45,6 @@ SER_ERR_BAUD_UNAVAIL = $05 ; Baud rate not available
|
||||
SER_ERR_NO_DATA = $06 ; Nothing to read
|
||||
SER_ERR_OVERFLOW = $07 ; No room in send buffer
|
||||
SER_ERR_INIT_FAILED = $08 ; Initialization failed
|
||||
|
||||
SER_ERR_INV_IOCTL = $09 ; IOCTL not supported
|
||||
|
||||
|
||||
|
@ -48,8 +48,9 @@ SER_HDR_PUT = SER_HDR_JUMPTAB+8 ; PUT routine
|
||||
SER_HDR_PAUSE = SER_HDR_JUMPTAB+10 ; PAUSE routine
|
||||
SER_HDR_UNPAUSE = SER_HDR_JUMPTAB+12 ; UNPAUSE routine
|
||||
SER_HDR_STATUS = SER_HDR_JUMPTAB+14 ; STATUS routine
|
||||
SER_HDR_IOCTL = SER_HDR_JUMPTAB+16 ; IOCTL routine
|
||||
|
||||
SER_HDR_JUMPCOUNT = 8 ; Number of jump vectors
|
||||
SER_HDR_JUMPCOUNT = 9 ; Number of jump vectors
|
||||
|
||||
;------------------------------------------------------------------------------
|
||||
; Offsets into the struct passed to ser_params
|
||||
@ -128,7 +129,7 @@ SER_STATUS_DSR = $40 ; NOT data set ready
|
||||
.global ser_pause
|
||||
.global ser_unpause
|
||||
.global ser_status
|
||||
|
||||
.global ser_ioctl
|
||||
|
||||
|
||||
;------------------------------------------------------------------------------
|
||||
@ -143,6 +144,6 @@ SER_STATUS_DSR = $40 ; NOT data set ready
|
||||
.global _ser_pause
|
||||
.global _ser_unpause
|
||||
.global _ser_status
|
||||
|
||||
.global _ser_ioctl
|
||||
|
||||
|
||||
|
@ -35,6 +35,7 @@ PALFLAG = $2A6 ; $01 = PAL, $00 = NTSC
|
||||
; Direct entries
|
||||
CLRSCR = $E544
|
||||
KBDREAD = $E5B4
|
||||
NMIEXIT = $FEBC
|
||||
|
||||
; ---------------------------------------------------------------------------
|
||||
; Vector and other locations
|
||||
|
@ -30,6 +30,7 @@ ser_put: jmp return0
|
||||
ser_pause: jmp return0
|
||||
ser_unpause: jmp return0
|
||||
ser_status: jmp return0
|
||||
ser_ioctl: jmp return0
|
||||
|
||||
; Driver header signature
|
||||
.rodata
|
||||
|
Loading…
Reference in New Issue
Block a user