29.12.2012 Views

The Programmer's Guide to TRSDOS Version 6 - Tim Mann's Home ...

The Programmer's Guide to TRSDOS Version 6 - Tim Mann's Home ...

The Programmer's Guide to TRSDOS Version 6 - Tim Mann's Home ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

NFLAG$<br />

This "network" flag is used for control in network situations. <strong>The</strong> bits are<br />

assigned as follows:<br />

Bit 0 If set, the "file-open" bit will be written <strong>to</strong> the direc<strong>to</strong>ry when a file is<br />

opened with update or higher access.<br />

Bit 1 reserved<br />

Bit 2 reserved<br />

Bit 3 reserved<br />

Bit 4 reserved<br />

Bit 5 reserved<br />

Bit 6 Set if the system's task processor is in control. NOTE: do not execute an EI<br />

instruction within any driver or filter routine if this bit is set.<br />

Bit 7 - reserved<br />

OFLAG$<br />

This flag is machine specific. It is used <strong>to</strong> contain an image of a particular CPU<br />

port - generally dealing with memory management. For instance, on the TRS-80 Model<br />

4, this is an image of the OPREG port (84).<br />

PFLAG$<br />

This flag is assigned <strong>to</strong> printer operations. Bits are as follows:<br />

Bit 0 - reserved<br />

Bit 1 - reserved<br />

Bit 2 - reserved<br />

Bit 3 - reserved<br />

Bit 4 - reserved<br />

Bit 5 - reserved<br />

Bit 6 - reserved<br />

Bit 7 - Set <strong>to</strong> 1 if the SPOOLer is in a paused state.<br />

SFLAG$<br />

Bit 0 This is the FORCE-TO-READ flag. If set prior <strong>to</strong> issuing an @OPEN, then the<br />

system will not check for matching LRL nor will the system set the "file<br />

open bit" in the direc<strong>to</strong>ry for the opened file. However, the file will be<br />

restricted <strong>to</strong> READ access (unless a lower access is detected during the<br />

open. This bit will be au<strong>to</strong>matically reset by @OPEN.<br />

Bit 1 This bit will be set by @OPEN if an EXEC-only file is opened and bit-2 of<br />

SFLAG$ is set. Under these conditions, @OPEN will change the access granted<br />

<strong>to</strong> READ so that @LOAD can load the file. Thus, the application (for instance<br />

BASIC) can load an EXEC-only file <strong>to</strong> be RUN while still detecting the EXEC<br />

protection status.<br />

Bit 2 Set this bit <strong>to</strong> enable the loading of an EXEC-only file. This bit works in<br />

conjunction with bit-1.<br />

Bit 3 Set <strong>to</strong> "1" if SYSTEM (FAST) has been established.<br />

Bit 4 Set <strong>to</strong> "1" <strong>to</strong> disable the BREAK key.<br />

Bit 5 Set <strong>to</strong> "1" if DO is in effect executing Job Control Language.<br />

Bit 6 Set <strong>to</strong> "1" <strong>to</strong> force extended error messages. This is only practical in a<br />

debugging environment.<br />

7-22

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!