How can an assembler get files from subdirectories and generally how to enter subdirectories ??
1 answer
Well, if under DOS ...
Go to subdirectory -
DOS 2+ - CHDIR - SET CURRENT DIRECTORY
AH = 3Bh DS: DX -> ASCIZ pathname to become current directory (max 64 bytes)
Return: CF clear if successful; AX = error code (03h) (see # 01680 at AH = 59h / BX = 0000h)
Notes: If you’re not a new directory, it’s the current directory. The FCB file calls operate. Under the FlashTek X-32 DOS extender, the pointer is in DS: EDX
And with the file - what does it mean to get it? Open? just transfer the full name to the path.
List of files? then, as rightly noted @PinkTux - 4Eh and 4Fh interrupt 21h.
As for all the functions, then at one time any programmer had Ralf Brown's Interrupt list :)
- Interrupt List - oh, yes! Even in the form of a resident table pop-up on hotkey :) - PinkTux
4Ehand4Fhint 21hin any fossil reference. - PinkTux