]> git.sur5r.net Git - cc65/commitdiff
Added (naive) implementation of dio_query_sectcount() and dio_query_sectsize() for...
authorol.sc <ol.sc@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 23 Oct 2012 19:29:40 +0000 (19:29 +0000)
committerol.sc <ol.sc@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 23 Oct 2012 19:29:40 +0000 (19:29 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@5873 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/geos-cbm/disk/Makefile
libsrc/geos-cbm/disk/dio_qcount.s [new file with mode: 0644]
libsrc/geos-cbm/disk/dio_qsize.s [new file with mode: 0644]

index 4594aacd9624567945332c8ee6d51aee3b93ab07..f027b355ee3f85accf3854acf58e1c2e8dcc6bc8 100644 (file)
@@ -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 (file)
index 0000000..0c9524a
--- /dev/null
@@ -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 (file)
index 0000000..46a4386
--- /dev/null
@@ -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