mirror of
https://github.com/cc65/cc65.git
synced 2024-12-23 19:29:37 +00:00
Added macro for ssc slot selection.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4528 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
10e810b623
commit
8ea7c876d6
@ -356,18 +356,18 @@ STATUS:
|
|||||||
; Must return an SER_ERR_xx code in a/x.
|
; Must return an SER_ERR_xx code in a/x.
|
||||||
|
|
||||||
IOCTL:
|
IOCTL:
|
||||||
; Check code to be 0
|
; Check data msb and code to be 0
|
||||||
tax
|
ora ptr1+1
|
||||||
bne :+
|
bne :+
|
||||||
|
|
||||||
; Check data to be [1..7]
|
; Check data lsb to be [1..7]
|
||||||
lda (ptr1,x)
|
ldx ptr1
|
||||||
beq :+
|
beq :+
|
||||||
cmp #7+1
|
cpx #7+1
|
||||||
bcs :+
|
bcs :+
|
||||||
|
|
||||||
sta Slot
|
stx Slot
|
||||||
txa ; SER_ERR_OK
|
tax ; SER_ERR_OK
|
||||||
rts
|
rts
|
||||||
|
|
||||||
: lda #<SER_ERR_INV_IOCTL
|
: lda #<SER_ERR_INV_IOCTL
|
||||||
|
Loading…
Reference in New Issue
Block a user