Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Interrupts & Ports - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

        Find first ASCIIZ (INT 21h, 4Eh - FIND FIRST)

        Searches disk for a matching file. The filename and the find-next
        information is placed in the current DTA

        Entry:
          AH = 4Eh
          CX = search attributes
          DS:DX = pointer to ASCIIZ filename
        Return:
          CF = 1 if error
          AX = Error Code if any

        [DTA] = data block
                    byte  00h:     drive letter (undocumented)
                    bytes 01h-0Bh: search template (undocumented)
                    bytes 0Ch-14h: reserved
                    byte  15h:     attribute of file found
                    bytes 16h-17h: file time
                    bytes 18h-19h: file date
                    bytes 1Ah-1Dh: file size
                    bytes 1Eh-3Ah: ASCIZ filename+extension

See Also: INT 21h, 4Fh INT 21h, 1Ah INT 21h, 2Fh Error codes

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson