]> git.sur5r.net Git - cc65/commitdiff
initial check-in
authorcpg <cpg@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 19 Feb 2005 00:57:26 +0000 (00:57 +0000)
committercpg <cpg@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 19 Feb 2005 00:57:26 +0000 (00:57 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@3391 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/atari/dioqsize.s [new file with mode: 0644]

diff --git a/libsrc/atari/dioqsize.s b/libsrc/atari/dioqsize.s
new file mode 100644 (file)
index 0000000..0c2c47b
--- /dev/null
@@ -0,0 +1,27 @@
+;
+; Christian Groessler, February 2005
+;
+; sectsize_t __fastcall__ dio_query_sectsize(dhandle_t handle);
+;
+
+       .include        "atari.inc"
+       .export         _dio_query_sectsize
+       .importzp       ptr1,tmp1
+       .import         popax, __oserror
+
+.proc  _dio_query_sectsize
+
+       sta     ptr1            ; handle
+       stx     ptr1+1 
+
+       lda     #0
+       sta     __oserror
+
+       ldy     #sst_sectsize+1
+       lda     (ptr1),y
+       tax
+       dey
+       lda     (ptr1),y
+       rts
+
+.endproc