9Ch XT$DIRM prompt for a file with directory option
Input X register - Points to the prompt string (leading byte count).
B register - Maximum number of characters that can entered.
A register - File type for directory $81 - $8F or $00 for ALL
RTB_BL:RTT_BF - Default filename offered
UTW_S0 - Line number for prompt - 0 for top line or 1 for 2nd line only .
UTW_S0+1 - flags for the directory display
Output

A register - file type of file selected (provided UTW_S0+1 is non-zero)
Carry set if ON/CLEAR pressed else
RTT_BF holds the selected filename.
TLB_CPAK holds the device selected.

Description

Produces a directory of files with a prompt like EDIT in PROG etc.

If EXE is used to select a file, the filename will be printed after the prompt and the lower 2 or 3 lines of the screen will be cleared when the routine exits.

This call is not available on CM/XP machines.

Example
example
Errors - none -