Inputs: None
Outputs:
A=0 and Zero Flag Set (Z) if function not available
A=0FFH and NZ if clear screen sequence issued
Registers Affected: PSW
Side Effects: Screen is Cleared
Special Error Conditions: None
Examples of Use:
ext cls ;reference routine
...
CALL CLS ;clear screen
...
:Erase to End of Line Routine
Routine: EREOL
Function:
Eras� th� curren� lin� fro� th� curso� positio� t� th� �
end of the line
Inputs: None
Outputs:
A=0 and Zero Flag Set (Z) if function not available
A=0FFH and NZ if ereol sequence issued
Registers Affected: PSW
Side Effects: Erase to End-of-Line occurs
Special Error Conditions: None
Examples of Use:
ext ereol ;reference routine
...
CALL EREOL ;erase to end-of-line
...
:Cursor Positioning
�
Routine: AT
Function:
Positio� a� ro� an� colum� identifie� a� th� retur� �
address on the CRT screen. The general syntax of usage is:
ext at ;reference
...
call at
db row,column ;coordinates
< code follows>
Inputs: None
Outputs: None
Registers Affected: None
Side Effects: None
Special Error Conditions: None
Examples of Use:
ext at ;reference
...
CALL AT
DB 12,25 ;ROW 12, COLUMN 25
...
Routine: GOTOXY
Function:
Positio� th� curso� a� th� ro� (containe� i� H�� an� �
colum� (containe� i� L� indicated�� wher� th� hom� positio� �
is H=1 and L=1 (upper left corner of screen)
Inputs: H=Row, L=Column
Outputs:
A=0 and Zero Flag Set (Z) if function not available
A=0FFH and NZ if cursor motion sequence issued
Registers Affected: PSW
Side Effects: Cursor is positioned
Special Error Conditions:
I� i� recommende� tha� th� las� colum� o� th� scree� i� �
no� reference䠠 wit� GOTOX٠ sinc� man�� screen� wil� �
automaticall�� wra� aroun� t� colum� � o� th� nex� line� �
possibly advancing the screen image undesirably.
Examples of Use:
ext gotoxy ;reference routine
...
LXI H,101H ;position to row 1/col 1
CALL GOTOXY
...
MVI H,24 ;position to row 24
MVI L,79 ;position to column 79
CALL GOTOXY
...
Inputs: HL contains the address of the ZCPR3 Env Descriptor
Outputs: None
Registers Affected: None
Side Effects: Pointers ENVPTR and VIDPTR are set
Special Error Conditions: None
Examples of Use:
ext z3vinit ;reference pointer and routine
...
lxi h,z3env ;address of ZCPR3 Environment Descriptor
call z3vinit
...
ext gxymsg ;reference
...
call gxymsg ;call routine
db row,column ;row and column numbers
db 'message' ;normal message text
d� 1,'standou� message',� ;standou� message
db 0 ;end of message indicator
< code follows >
Inputs: None
Outputs: None
Registers Affected: None
Side Effects: Message is Printed at Coordinates
Special Error Conditions: None
Examples of Use:
ext gxymsg
...
call gxymsg
db 5,10 ;row 5, column 10
db 'Hello ' ;"Hello " is printed normally
db 1,'World',2 ;"World" is printed standout
db 0
...
ext vprint ;reference
...
call vprint ;call routine
db 'message' ;normal message text
d� 1,'standou� message',� ;standou� message
db 0 ;end of message indicator
< code follows >
Inputs: None
Outputs: None
Registers Affected: None
Side Effects: Message is Printed
Special Error Conditions: None
Examples of Use:
ext vprint
...
call vprint
db 'Hello ' ;"Hello " is printed normally
db 1,'World',2 ;"World" is printed standout
db 0
...
:Standout Mode
Routine: STNDOUT
Function:
Begi� Standou� Mod� - fo� som� terminals�� thi� wil� b� �
reverse video, and for others this will be dim
Inputs: None
Outputs:
A=0 and Zero Flag Set (Z) if function not available
A=0FFH and NZ if standout sequence issued
Registers Affected: PSW
Side Effects: Standout Mode is begun on terminal
Special Error Conditions:
I� al� cases�� a� par� o� th� Z3TCAРdefinition� �
enterin� Standou� Mod� an� leavin� Standou� Mod� d� no� �
caus� an� position� o� th� scree� t� b� occupied� Curso� i� �
NOT moved.
I� i� recommende� tha� extensiv� curso� motio� i� no� �
don� betwee� STNDOUT/STNDEN� call� (ie�� don'� us� GOTOXY� �
sinc� th� effect� o� doin� thi� ar� no� generalize� fo� al� �
terminals and may not be desirable in some cases.
Note: See STNDEND for the complement of this function.
Examples of Use:
ext stndout,stndend
...
call stndout
...
< all screen output is now in Standout Mode >
...
call stndend
...
< all screen output is back to normal >
Inputs: None
Outputs:
A=0 and Zero Flag Set (Z) if function not available
A=0FFH and NZ if standend sequence issued
Registers Affected: PSW
Side Effects: None (see notes for STNDOUT)
Special Error Conditions: None (see notes for STNDOUT)
Examples of Use: (see notes for STNDOUT)
Inputs: None
Outputs: None
Registers Affected: None
Side Effects: None
Special Error Conditions: (see notes on TINIT)
Examples of Use: (see notes on TINIT)