assert parm count
This commit is contained in:
@@ -41,7 +41,7 @@ _lseek:
|
|||||||
bcs einval
|
bcs einval
|
||||||
|
|
||||||
; Set fd
|
; Set fd
|
||||||
sta mliparam + MLI::RW::REF_NUM
|
sta mliparam + MLI::MARK::REF_NUM
|
||||||
|
|
||||||
txa
|
txa
|
||||||
beq cur
|
beq cur
|
||||||
@@ -61,7 +61,9 @@ cur:
|
|||||||
|
|
||||||
; SEEK_END
|
; SEEK_END
|
||||||
end:
|
end:
|
||||||
ldx #MARK_COUNT ; conveniently same as EOF_COUNT
|
; MARK_COUNT must == EOF_COUNT, otherwise unexpected behaviour
|
||||||
|
.assert MARK_COUNT = EOF_COUNT, error
|
||||||
|
ldx #MARK_COUNT
|
||||||
jsr callmli
|
jsr callmli
|
||||||
bcs oserr
|
bcs oserr
|
||||||
lda mliparam + MLI::MARK::POSITION
|
lda mliparam + MLI::MARK::POSITION
|
||||||
|
|||||||
Reference in New Issue
Block a user