; SEEK_CUR
cur: ldx tmp3
- lda #38 ; NOTE
+ lda #NOTE
sta ICCOM,x
jsr CIOV ; read it
bmi xxerr
; SEEK_END
end: ldx tmp3
- lda #39 ; get file size
+ lda #GETFL
sta ICCOM,x
jsr CIOV
bpl l01
.if 0
; return exactly the position DOS has
ldx tmp3
- lda #38 ; NOTE
+ lda #NOTE
sta ICCOM,x
jsr CIOV ; read it
bmi xxerr
sta ICAX4,x
lda ptr4
sta ICAX5,x
- lda #37 ;POINT
+ lda #POINT
sta ICCOM,x
jsr CIOV
bpl ret
.endproc
-; check, whether seeking is supported
+; check whether seeking is supported
; tmp3: iocb
; X: index into fd_table
;
; do the test
lda __dos_type
cmp #SPARTADOS
+ beq :+
+ cmp #BWDOS
+ beq :+
+ cmp #REALDOS
bne ns1
- txa
+: txa
pha
lda DOS+1 ; get SpartaDOS version
cmp #$40
bcs supp1 ; SD-X (ver 4.xx) supports seeking on all disks
ldx tmp3 ; iocb to use
- lda #39 ; get file size
+ lda #GETFL
sta ICCOM,x
jsr CIOV
bmi notsupp ; error code ? should be 168 (invalid command)