Added (naive) implementation of dio_query_sectcount() and dio_query_sectsize() for GEOS 64/128.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5873 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
a1a3a6d151
commit
9930379665
3 changed files with 31 additions and 0 deletions
|
@ -10,6 +10,8 @@ S_OBJS += changediskdevice.o \
|
||||||
dio_cts.o \
|
dio_cts.o \
|
||||||
dio_openclose.o \
|
dio_openclose.o \
|
||||||
dio_params.o \
|
dio_params.o \
|
||||||
|
dio_qcount.o \
|
||||||
|
dio_qsize.o \
|
||||||
dio_read.o \
|
dio_read.o \
|
||||||
dio_stc.o \
|
dio_stc.o \
|
||||||
dio_write.o \
|
dio_write.o \
|
||||||
|
|
15
libsrc/geos-cbm/disk/dio_qcount.s
Normal file
15
libsrc/geos-cbm/disk/dio_qcount.s
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
;
|
||||||
|
; Oliver Schmidt, 2012-10-23
|
||||||
|
;
|
||||||
|
; unsigned __fastcall__ dio_query_sectcount (dhandle_t handle);
|
||||||
|
;
|
||||||
|
|
||||||
|
.export _dio_query_sectcount
|
||||||
|
.import __oserror
|
||||||
|
|
||||||
|
_dio_query_sectcount:
|
||||||
|
lda #0
|
||||||
|
sta __oserror
|
||||||
|
lda #<683
|
||||||
|
ldx #>683
|
||||||
|
rts
|
14
libsrc/geos-cbm/disk/dio_qsize.s
Normal file
14
libsrc/geos-cbm/disk/dio_qsize.s
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
;
|
||||||
|
; Oliver Schmidt, 2012-10-23
|
||||||
|
;
|
||||||
|
; unsigned __fastcall__ dio_query_sectsize (dhandle_t handle);
|
||||||
|
;
|
||||||
|
|
||||||
|
.export _dio_query_sectsize
|
||||||
|
.import __oserror
|
||||||
|
|
||||||
|
_dio_query_sectsize:
|
||||||
|
lda #<256
|
||||||
|
ldx #>256
|
||||||
|
sta __oserror
|
||||||
|
rts
|
Loading…
Add table
Reference in a new issue