1
0
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:
ol.sc 2009-12-13 11:23:20 +00:00
parent 10e810b623
commit 8ea7c876d6

View File

@ -356,18 +356,18 @@ STATUS:
; Must return an SER_ERR_xx code in a/x.
IOCTL:
; Check code to be 0
tax
; Check data msb and code to be 0
ora ptr1+1
bne :+
; Check data to be [1..7]
lda (ptr1,x)
; Check data lsb to be [1..7]
ldx ptr1
beq :+
cmp #7+1
cpx #7+1
bcs :+
sta Slot
txa ; SER_ERR_OK
stx Slot
tax ; SER_ERR_OK
rts
: lda #<SER_ERR_INV_IOCTL