diocommon.o \
dioopen.o \
dioread.o \
+ diosectcount.o \
+ diosectsize.o \
diowrite.o \
dosdetect.o \
get_ostype.o \
; drive_id = (slot * 2) + (drive - 1)
.export _dio_open
- .import decaxy, return0
+ .import return0
.include "zeropage.inc"
.include "errno.inc"
asl
asl
asl
+ tay ; Save handle
+
+ ; Set handle
sta mliparam + MLI::ON_LINE::UNIT_NUM
; Alloc 16-byte buffer just below stack
- ldy #16
lda sp
- ldx sp+1
- jsr decaxy
+ sec
+ sbc #16
sta mliparam + MLI::ON_LINE::DATA_BUFFER
- stx mliparam + MLI::ON_LINE::DATA_BUFFER+1
+ lda sp+1
+ sbc #$00
+ sta mliparam + MLI::ON_LINE::DATA_BUFFER+1
; Get device state
lda #ON_LINE_CALL
bcc oserr
; Return success
-: lda mliparam + MLI::ON_LINE::UNIT_NUM
+: tya ; Restore handle
ldx #$00
stx __oserror
rts
--- /dev/null
+;
+; Oliver Schmidt, 31.03.2005
+;
+; sectnum_t __fastcall__ dio_query_sectcount(dhandle_t handle);
+;
+
+ .export _dio_query_sectcount
+
+_dio_query_sectcount:
+ lda #<280
+ ldx #>280
+ rts
--- /dev/null
+;
+; Oliver Schmidt, 31.03.2005
+;
+; sectsize_t __fastcall__ dio_query_sectsize(dhandle_t handle);
+;
+
+ .export _dio_query_sectsize
+
+_dio_query_sectsize:
+ lda #<512
+ ldx #>512
+ rts
crt0.o \
ctype.o \
cvline.o \
+ dioclose.o \
+ diocommon.o \
+ dioopen.o \
+ dioread.o \
+ diosectcount.o \
+ diosectsize.o \
+ diowrite.o \
dosdetect.o \
get_ostype.o \
getenv.o \
joy_stddrv.o \
kbhit.o \
mainargs.o \
+ mli.o \
oserrlist.o \
randomize.o \
rcout.o \