mirror of
https://github.com/cc65/cc65.git
synced 2025-02-03 07:30:52 +00:00
assert parm count
This commit is contained in:
parent
0c204725bc
commit
bbd419f365
@ -41,7 +41,7 @@ _lseek:
|
||||
bcs einval
|
||||
|
||||
; Set fd
|
||||
sta mliparam + MLI::RW::REF_NUM
|
||||
sta mliparam + MLI::MARK::REF_NUM
|
||||
|
||||
txa
|
||||
beq cur
|
||||
@ -61,7 +61,9 @@ cur:
|
||||
|
||||
; SEEK_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
|
||||
bcs oserr
|
||||
lda mliparam + MLI::MARK::POSITION
|
||||
|
Loading…
x
Reference in New Issue
Block a user