17.01.2013 Views

AmstradCPC6128-hypertext-en-Sinewalker

AmstradCPC6128-hypertext-en-Sinewalker

AmstradCPC6128-hypertext-en-Sinewalker

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

.... and the attributes can be altered by commands such as:<br />

DE V ICE S I 0 [ 1 200] .... sets S I 0 to 1200 baud.<br />

DEVICE SIO[XON] .... toturnonSIO XON/XOFFprotocol.<br />

DEV ICE S 10 [NOXON] .... to turn off S 10 XON/XO F F protocol.<br />

The connections betwe<strong>en</strong> logical and physical devices can be altered. Normally<br />

CON: is set to C R T (keyboard/scre<strong>en</strong>), A U X: is set to SI 0 (the optional serial<br />

interface), and L S T : is set to LP T (the C<strong>en</strong>tronics printer interface). The command:<br />

DEVICE LST:=SIO<br />

.... will s<strong>en</strong>d the printer output to the serial interface (if fitted).<br />

Note how this is a channel re-direction, not to be confused with the file copying<br />

facilities provided by PIP. The two commands GET and PU T < fil<strong>en</strong>ame ><br />

re-direct console input or output, and printer output, instructing them to use a file,<br />

rather than the device channel.<br />

PIP<br />

The PIP utility (Peripheral Interchange Program) allows you to transfer<br />

information betwe<strong>en</strong> the computer and its peripherals.<br />

In g<strong>en</strong>eral, the form of the command is:<br />

PIP = <br />

The and can be either a fil<strong>en</strong>ame, with wild-cards allowed in<br />

the source, or a logical device. The following logical devices may be used:<br />

As Source<br />

CON:<br />

AUX:<br />

EOF:<br />

Examples of PIP:<br />

PIP B:=A:*.COM<br />

console input<br />

auxiliary input<br />

an <strong>en</strong>d-of-file mark<br />

As destination<br />

CON:<br />

AUX:<br />

LST:<br />

PRN:<br />

.... copy all * . CO M file from Drive A : to Drive B :<br />

console output<br />

auxiliary output<br />

printer<br />

a printer with added tab<br />

expansion, line numbers and page<br />

breaks<br />

Chapter 5 Page 28 AMSDOS and CP/M

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

Saved successfully!

Ooh no, something went wrong!