Skip to Content

File Specifiers

File and device specifiers must comply with the standard Z88 filer conventions. These conventions are described at Appendix D to the Z88 manual and summarised briefly below.

[:device][/][path/]filename.extension

:device The memory bank where the file is located or the name of a physical device.
This can be:

:RAM.0

:RAM.1

:RAM.2

:RAM.3

:RAM.-

:SCR.0

:ROM.0

:PTR.0

:COM.0

:INP.0
:OUT.0

:NUL.0

RAM in slot 0 (internal memory).

RAM in slot 1 (external memory).

RAM in slot 2 (external memory).

RAM in slot 3 (external memory).

Any RAM memory (RAM.0 to RAM.3). Used by the CLI for temporary files. Lost on reset.

Screen

ROM.

Printer.(Serial port via the printer driver so that any special codes and escape sequences are interpreted.)

Communications (serial) port, but NOT via the printer driver.

Standard input
Standard output

Null. (Absorbs output and acts like an empty file on input.)

The final .0 of a device name may be omitted if the device is unique. For example, :COM.0 may be abbreviated to :COM

There is a bug in versions of the filer up to and including version 3 that will cause the Z88 to crash if you use the device :RAM.- and then perform a soft reset whilst any files are still present in the device. You can avoid this problem by deleting any files in :RAM.- as soon as you have finished with them.

path
The list of directories which must be followed in order to find the specified file. The names of each directory in the path must be separated by the slash (divide) character. If the path is omitted, the current directory on the specified drive is assumed.
BBCBASIC/PROGS
filename
extension

The name of the file. The length of the name must not exceed 12 characters.

The optional extension of the file. If an extension is used; it must be separated from the filename by a full-stop.

The standard Z88 ‘wild-cards’ may be used when an ambiguous file specifier is acceptable.

?

*

//

Allow any single character in this position. If this is used as the last character in the name, a null character will be accepted.

Allow any character (including a null) from the position of the `4’ to the end of the name or extension.

Matches any number of directories (or none).

Last updated on