]> git.sur5r.net Git - cc65/commitdiff
implements _dio_chs_to_snum function (dummy on Atari)
authorcpg <cpg@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 12 Oct 2000 21:02:24 +0000 (21:02 +0000)
committercpg <cpg@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 12 Oct 2000 21:02:24 +0000 (21:02 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@363 b7a2c559-68d2-44c3-8de9-860c34a00d81

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

diff --git a/libsrc/atari/dio_cts.s b/libsrc/atari/dio_cts.s
new file mode 100644 (file)
index 0000000..75a65a6
--- /dev/null
@@ -0,0 +1,32 @@
+;
+; Christian Groessler, October 2000
+;
+; this file provides the _dio_chs_to_snum function
+;
+; on the Atari this function is a dummy, it ignores
+; cylinder and head 0 and returns as sector number the
+; sector number it got
+;
+; _sectnum_t __fastcall__ _dio_chs_to_snum(unsigned int cyl, unsigned int head, unsigned int sector);
+;
+; _driveid_t - 8bit
+; _sectnum_t - 16bit
+;
+
+       .export         __dio_chs_to_snum
+       .import         addsp4
+       .include        "atari.inc"
+
+.proc  __dio_chs_to_snum
+
+       pha                     ; save sector value
+       txa
+       pha
+       jsr     addsp4          ; ignore other parameters
+       pla
+       tay
+       pla
+       rts
+
+.endproc
+