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.

Bit 7 Set <strong>to</strong> "1" if DEBUG is <strong>to</strong> be turned on after the execution of the program<br />

just loaded for execution. <strong>The</strong> use is internal <strong>to</strong> the system. If DEBUG is<br />

active, the DOS will not enter DEBUG when running an EXEC-only program but<br />

will maintain the DEBUG status via this bit.<br />

TFLAG$<br />

This is the machine type flag. It's value indicates the computer model running the<br />

DOS. Some of the typical TRS-80 values are: 2 = model 2; 4 = model 4; 5 = model<br />

4P; 12 = model 12; 16 = model 16.<br />

UFLAG$<br />

This is a user flag. It is available for whatever purpose you wish <strong>to</strong> make of it.<br />

It will remain unused by the system; however, the flag contents will be part of<br />

any SYSGEN configuration file.<br />

VFLAG$<br />

Bits 0-3 Are used in controlling the cursor blink rate.<br />

Bit 4 If set, the clock will be displayed on the video screen.<br />

Bit 5 This bit is used by the system <strong>to</strong> <strong>to</strong>ggle the cursor state.<br />

Bit 6 If set, the cursor is non-blinking; otherwise blinking.<br />

Bit 7 Used by the system <strong>to</strong> suppress blinking while in the *DO driver <strong>to</strong> inhibit<br />

the blink task from changing state.<br />

WFLAG$<br />

This is a machine dependent flag commonly used <strong>to</strong> s<strong>to</strong>re an image of mode-1<br />

interrupt masking. For instance, on the TRS-80 Model 4, it s<strong>to</strong>res an image of the<br />

WRINTMASK register (E0).<br />

OTHER DATA<br />

<strong>The</strong> other system information accessible relative <strong>to</strong> the flags pointer is as<br />

follows:<br />

FLAGS-47 contains the release number of the DOS (OSRLS$). For instance, OSRLS$ is<br />

X'10' for version/release 6.0.1 (see FLAGS+27 for the version).<br />

FLAGS-1 contains the overlay entry number of the system overlay currently resident<br />

in the overlay region. <strong>The</strong> low-order four bits reference the overlay number (1-<br />

13).<br />

FLAGS+26 contains a one-byte pointer <strong>to</strong> the memory page which contains the SVC<br />

vec<strong>to</strong>r table (SVCTAB). This is useful <strong>to</strong> hook in<strong>to</strong> system routines by indexing<br />

in<strong>to</strong> the proper SVCTAB position according <strong>to</strong> the SVC number. <strong>The</strong> SVCTAB is always<br />

located on a page boundary.<br />

FLAGS+27 contains the version number of the DOS (OSVER$). For instance, OSVER$ is<br />

X'62' for version 6.2.x<br />

FLAGS+28 through FLAGS+30 contain a jump vec<strong>to</strong>r for @ICNFG. See the Chapter 8, the<br />

Appendix, on @ICNFG interfacing for details on this vec<strong>to</strong>r.<br />

FLAGS+31 through FLAGS+33 contain a jump vec<strong>to</strong>r for @KITSK. See Chapter 8, the<br />

Appendix, on @KITSK interfacing for details on this vec<strong>to</strong>r.<br />

7-23

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

Saved successfully!

Ooh no, something went wrong!