]> git.sur5r.net Git - cc65/blob - libsrc/atari/dio_cts.s
75a65a6700fd6e44dbe5e80924e4ace01232bb0d
[cc65] / libsrc / atari / dio_cts.s
1 ;
2 ; Christian Groessler, October 2000
3 ;
4 ; this file provides the _dio_chs_to_snum function
5 ;
6 ; on the Atari this function is a dummy, it ignores
7 ; cylinder and head 0 and returns as sector number the
8 ; sector number it got
9 ;
10 ; _sectnum_t __fastcall__ _dio_chs_to_snum(unsigned int cyl, unsigned int head, unsigned int sector);
11 ;
12 ; _driveid_t - 8bit
13 ; _sectnum_t - 16bit
14 ;
15
16         .export         __dio_chs_to_snum
17         .import         addsp4
18         .include        "atari.inc"
19
20 .proc   __dio_chs_to_snum
21
22         pha                     ; save sector value
23         txa
24         pha
25         jsr     addsp4          ; ignore other parameters
26         pla
27         tay
28         pla
29         rts
30
31 .endproc
32