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 ; sectnum_t *sectnum); /* output */
15 ; dhandle_t - 16bit (ptr)
19 .export _dio_phys_to_log
20 .import popax,__oserror
21 .importzp ptr1,ptr2,ptr3
24 .proc _dio_phys_to_log
27 stx ptr1+1 ; pointer to result
31 stx ptr2+1 ; pointer to input structure
35 stx ptr3+1 ; pointer to handle
40 beq _inv_hand ; handle not open or invalid
42 ; ignore head and track and return the sector value