1
0
mirror of https://github.com/cc65/cc65.git synced 2024-09-29 17:56:21 +00:00

implements _dio_chs_to_snum function (dummy on Atari)

git-svn-id: svn://svn.cc65.org/cc65/trunk@363 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cpg 2000-10-12 21:02:24 +00:00
parent 282b2946bd
commit 068d2d3fb9

32
libsrc/atari/dio_cts.s Normal file
View File

@ -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