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 ; sectnum_t *sectnum, /* input */
12 ; dio_phys_pos *physpos); /* output */
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 ptr2+1 ; pointer to output structure
30 stx ptr1+1 ; save pointer to input data
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)