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 ; unsigned *sectnum, /* input */
12 ; dio_phys_pos *physpos); /* output */
14 ; dhandle_t - 16bit (ptr)
17 .export _dio_log_to_phys
19 .importzp ptr1,ptr2,ptr3
20 .import popax,__oserror
22 .proc _dio_log_to_phys
25 stx ptr2+1 ; pointer to output structure
29 stx ptr1+1 ; save pointer to input data
33 stx ptr3+1 ; pointer to handle
38 beq _inv_hand ; handle not open or invalid
45 sta (ptr2),y ; track (low)
47 sta (ptr2),y ; track (high)