Printer Control Statements - Sharp MZ-80B Basic Manual

Personal computer double precision disc
Hide thumbs Also See for MZ-80B:
Table of Contents

Advertisement

600 WOPEN #8, USR
($COOO)
6 1 0 PRINT #8, A $
620 C LOSE #8
700 ROPEN #9, USR
($C 1 00)
7 1 0 INPUT #9, B $
720 CLOSE #9
3. 1 . 1 6 Prin ter con trol statements
PRINT/P
PRINT/P A$
PRINT /P CHR$ (N)
PRINT/P CHR$ (5)
PRINT/P CHR$ (6)
PRINT /P CHR$ ( 1 6)
PRINT /P CHR$ ( 1 7)
P RINT/P CHR$ ( 1 8)
The statement on line 600 opens a file which is to be written by
the machine language program called by USR ($COOO) with logical
number 8 assigned . At this stage of program execution the USR
function is not executed. The statement on line 6 10 loads the
beginning address of the memory area set with variable A$ into the
DE register of the CPU and its length (max. 2 5 5 bytes) into the BC
register. This enables the program called by USR (SCOOO) to obtain
data in A$. It then executes USR ($COOO).
The statement on line number 700 opens a file which is to be read
by the machine language program called by USR ($C 1 00) with
logical number 9 assigned. The statement on line number 7 1 0 exe­
cutes USR ($C 1 00). The machine language program called loads
string data in the memory area starting at the address indicated by
the DE register and loads the length of the data string read in the
BC register. It then returns program control to the BASIC program.
The BASIC program refers to this memory area as B$.
Performs the nearly same operation
optional printer.
Outputs to the printer just as it is the contents of string variable
A$.
For an N of 3 2 � N � 255, it considers this as an ASCII code, and
outputs a matching character to the printer.
Feeds paper to top of the form position on the next page . It is
called form feed. The function of the control button "TOP O F
FORM" o f the printer i s controlled b y software.
Returns the printing mode to its initial condition. Furthermore ,
the form feed is carried out. It is called initial mode set. Initial
mode means 80 digit mode , line space mode.
Sets the printing mode for line spacing. It is called line space mode.
Sets the printing mode , completely closing up printing line space.
Sets the mode to double the present printing size of the characters.
It is called double size mode. There is a 40 digit mode and a 68
digit mode .
the PRINT statement on the
as
55

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents