Printer Control With Basic - Sharp MZ-80P6 Instruction Manual

Hide thumbs Also See for MZ-80P6:
Table of Contents

Advertisement

Printer Control with
With BASIC language, you can easily control the MZ-80P6 and print various formats. Here we will
explain a method of printer control based on with BASIC language. Commands differ according to the
BASIC used.
1. BASIC for MZ-80B or MZ-80A
Command
:.
,,'-~'"
:~~
Example
~
iJ ; ••
:-­
.:.~.j.
~-
.4-"
-
.-
Meaning
~
...
:~
; f
i-~~l
.... ij" ,.";
LIST/P
LIST/P
Outputs to the printer the complete list of the BASIC
text.
LlST/P -100
Outputs to the printer the BAS IC text to number 100.
LlST/P 100-500
Outputs to
100 to 500.
the printer the BASI C text from number
LIST/P 500­
Outputs to the printer the BAS I C text after nu rnber 500.
PRINT/P
PRINT/P A$
Outputs to the pri nter just as it is the contents of string
variable A$.
PRINT/P CHR$ (N)
For an N of
32~N~255,
it considers this as an ASCII
code, and outputs a matching character to the printer. It
pri nts "A" if N
=
65.
PRINT/P CHR$ (5)
(Form feed)
Feeds paper to top of the form position on the next
page. It is called form feed. The function of the control
button "TOP OF FORM" of the printer is controlled
by software.
(Note) It is equivalent to control code FF (OCH) of the
pri nter.
PRINT/P CHR$ (6)
(I nitialization)
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.
PRINT/P CHR$ (16)
(Line
space
mode)
Sets the printing mode for line spacing. It is called line
space mode.
(Note) It is equivalent to printer control code (ESC
+
02H).
PRINT/P CHR$ (17)
(Non line space mode)
Sets the printing mode, completely closing up printing
I i ne space. I t is called non I ine space mode.
(Note) I t is equ ivalent to printer control code (ESC
+
OOH).
30

Advertisement

Table of Contents
loading

Table of Contents