home *** CD-ROM | disk | FTP | other *** search
- Console String Input Editor - TLINE
- Print Character with Tab Expansion - TCOUT, TCOUT7
- Print High Bit- or Null-Terminated String - HPRINT, HPSTR
- Print with Highlighted Video - HVPRINT, HVPSTR
- Begin or End Highlighted Video - HVON, HVOFF
- Initialize or De-initialize Terminal - HVTINIT, HVDINIT
- Output Counted String on Printer - LCSTR
- Store Character or String to Memory - MOUT, MSTR
- :
- TLINE - Tiny in-line editor for console input.
-
- ENTER: HL = address of buffer (length=number of characters allowed + 1),
- B = number of characters allowed (255 maximum),
- A = echo flag (0=echo input, FFh=echo dots).
- EXIT: A = 0, zero flag set (Z), if null-terminated string is in buffer,
- A = 3, zero flag reset (NZ), if user aborted with control-C (^C).
- USES: AF
-
- Usage: Only backspace and delete are available for editing input line. A
- carriage return ends input and a null is inserted at end of line. A ^C
- aborts the editor (string is not terminated). Other control characters are
- rejected and the console bell is sounded. The bell is also sounded if the
- user attempts to backspace beyond the beginning of the line or to input
- more characters than allowed.
- :
- TCOUT, TCOUT7 - Prints character on console, expanding tabs.
-
- ENTER: A = character.
- EXIT: None (but TCOUT7 resets high bit of character).
- USES: None (but TCOUT7 uses AF).
-
- Usage: If tab expansion is to be used, the first call to these routines
- should have a carriage return (0Dh) in A to reset the column counter. Only
- printable characters are counted. TCOUT7 zeros all high bits. These
- routines are primarily intended for printing strings from within loops.
- :
- HPRINT - Prints in-line string terminated with high-bit or null character.
-
- ENTER: Stack points to string terminated by a null or by a character with
- its high bit set.
- EXIT: None (execution resumes at byte following terminating character).
- USES: None.
-
- HPSTR - Prints addressed string terminated with high-bit or null character.
-
- ENTER: HL = address of string terminated by a null or by a character with
- its high bit set.
- EXIT: HL = address of byte following terminating character.
- USES: HL
-
- Usage: Tabs are expanded; other control characters are passed unaffected.
- :
- HVPRINT - Prints in-line string terminated high-bit or null character, with
- highlighting.
-
- ENTER: Stack points to string terminated by a null or by a character with
- its high bit set.
- EXIT: None (execution resumes at byte following terminating character).
- USES: None.
-
- HVPSTR - Prints addressed string terminated with high-bit or null character,
- with highlighting.
-
- ENTER: HL = address of string terminated by a null or by a character with
- its high bit set.
- EXIT: HL = address of byte following terminating character.
- USES: HL
-
- Usage: Z3INIT from Z3LIB must be called before using these routines. Tabs
- are expanded, ^A marks the beginning of highlighted video, and ^B marks the
- end of highlighted video. Other control characters are passed unaffected,
- but do not count toward tab expansion. There is no size advantage if any
- VLIB routines are used. See HVON and HVOFF for more information.
- :
- HVON, HVOFF - Turns video highlighting on and off.
-
- ENTER: None.
- EXIT: None.
- USES: None.
-
- Usage: Z3INIT from Z3LIB must be called before using these routines. HVON
- turns on highlighting; HVOFF turns off highlighting. If there is no
- environment, no TCAP, or no standout strings, nothing is done. If all you
- need is simple highlighting, these routines are much smaller than similar
- routines in VLIB 4. There is no size advantage, however, if any VLIB
- routines are called by your program. Your program should also call HVTINIT
- on entry and HVDINIT before exiting.
- :
- HVTINIT, HVDINIT - Initializes and de-initializes terminal.
-
- ENTER: None.
- EXIT: None.
- USES: None.
-
- Usage: Z3INIT from Z3LIB must be called before using these routines.
- HVTINIT initializes terminal; HVDINIT de-initializes terminal. If there is
- no environment, no TCAP, or no initialization and de-initialization
- strings, nothing is done. HVTINIT should be called early in your program
- before any calls to HVON, HVOFF, HVPRINT, or HVPSTR. HVDINIT should be
- called before your program exits.
- :
- LCSTR - Outputs counted string to printer.
-
- ENTER: HL = address of character count (first byte) of string.
- EXIT: None.
- USES: None.
-
- Usage: String requires no termination character, but the first byte is the
- length of the string that immediately follows. Characters are sent as-is
- with no interpretation.
- :
- MOUT - Stores character to memory.
-
- ENTER: A = character,
- DE = address of memory buffer (1 byte).
- EXIT: DE = address of byte after output.
- USES: DE
-
- MSTR - Stores null-terminated string to memory.
-
- ENTER: HL = address of null-terminated string,
- DE = address of memory buffer for output.
- EXIT: HL = address of byte following the terminating null,
- DE = address of byte after output.
- USES: DE, HL
-
- Usage: These routines can be called repeatedly to write characters and
- strings to successive addresses in memory.