diff --git a/libsrc/geos-cbm/disk/Makefile b/libsrc/geos-cbm/disk/Makefile index 4594aacd9..f027b355e 100644 --- a/libsrc/geos-cbm/disk/Makefile +++ b/libsrc/geos-cbm/disk/Makefile @@ -10,6 +10,8 @@ S_OBJS += changediskdevice.o \ dio_cts.o \ dio_openclose.o \ dio_params.o \ + dio_qcount.o \ + dio_qsize.o \ dio_read.o \ dio_stc.o \ dio_write.o \ diff --git a/libsrc/geos-cbm/disk/dio_qcount.s b/libsrc/geos-cbm/disk/dio_qcount.s new file mode 100644 index 000000000..0c9524a9b --- /dev/null +++ b/libsrc/geos-cbm/disk/dio_qcount.s @@ -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 diff --git a/libsrc/geos-cbm/disk/dio_qsize.s b/libsrc/geos-cbm/disk/dio_qsize.s new file mode 100644 index 000000000..46a4386ab --- /dev/null +++ b/libsrc/geos-cbm/disk/dio_qsize.s @@ -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