Function #0a of procedure #3d13

ZXNet echo conference «code.zx»

From Alexander Shushkov To All 11 October 2006

Hello, All Will there be #5cf4 (read address of the next sector) in the TR-DOS system variable? is the address of the file that we are looking for using function #0A, or its (address: sector, path) need to be “fished out” separately?

From Alexander Shushkov To All 11 October 2006

Hello Specter Spe> If I were you, I would do this: Spe> Spe> LD C,#A ;find file on disk Spe> CALL #3D13 Spe> LD A,C Spe> INC C Spe> RET Z ;file not found Spe> LD C,8 ;read file descriptor Spe> CALL #3D13 Spe> LD DE,14 Spe> ADD HL,DE Spe> Spe> In (HL) what you need Will HL, upon exiting the 8th function, point to #5CDD?

From Andrey Bogdanovich To All 11 October 2006

Hello axor axo> Will there be TR-DOS #5cf4 in the system variable (read address of next axo> sectors) is the address of the file that we are looking for using the function axo> #0A, or does it (address: sector, track) need to be “fished out” separately? If I were you, I would do this: LD C,#A ;find file on disk CALL #3D13 LD A,C INC C RET Z ;file not found LD C,8 ;read file descriptor CALL #3D13 LD DE,14 ADD HL,DE In (HL) what you need

From Andrey Bogdanovich To All 12 October 2006

Hello axor Yes, I didn’t think of something (probably work has a bad influence). :) Of course you can right away HL, (#5CEB)