2 ; Christian Groessler, October 2000
4 ; this file provides the _dio_phys_to_log function
5 ; (previously called _dio_chs_to_snum, so the filename)
7 ; on the Atari this function is a dummy, it ignores
8 ; cylinder and head and returns as sector number the
11 ; unsigned char __fastcall__ dio_phys_to_log(dhandle_t handle,
12 ; dio_phys_pos *physpos, /* input */
13 ; unsigned *sectnum); /* output */
15 ; dhandle_t - 16bit (ptr)
18 .export _dio_phys_to_log
19 .import popax,__oserror
20 .importzp ptr1,ptr2,ptr3
23 .proc _dio_phys_to_log
26 stx ptr1+1 ; pointer to result
30 stx ptr2+1 ; pointer to input structure
34 stx ptr3+1 ; pointer to handle
39 beq _inv_hand ; handle not open or invalid
41 ; ignore head and track and return the sector value