2 ; Christian Groessler, October 2000
4 ; this file provides the _dio_log_to_phys function
5 ; (previously called _dio_snum_to_chs, so the filename)
7 ; on the Atari this function is a dummy, it returns
8 ; cylinder and head 0 and as sector the sectnum it got
10 ; unsigned char __fastcall__ _dio_log_to_phys(_dhandle_t handle,
11 ; _dio_phys_pos *physpos, /* output */
12 ; _sectnum_t *sectnum); /* input */
14 ; _dhandle_t - 16bit (ptr)
18 .export __dio_log_to_phys
20 .importzp ptr1,ptr2,ptr3
21 .import popax,__oserror
23 .proc __dio_log_to_phys
26 stx ptr1+1 ; save pointer to input data
30 stx ptr2+1 ; pointer to output structure
34 stx ptr3+1 ; pointer to handle
39 beq _inv_hand ; handle not open or invalid
46 sta (ptr2),y ; track (low)
48 sta (ptr2),y ; track (high)