Olivetti JP101 Скачать руководство пользователя страница 5

14) Programmed Vertical Tabulation

      VDU1, 27, 1, 81
      (format information)
      VDU1, 27, 1, 90

This is the vertical version of 12) above.  See 12) for more information.  The following program
demonstrates printing as programmed vertical tab stops.

10  @%=0
20  VDU2
30  VDU1, 27, 1, 81'
40  PRINT"60;10;15;40;47";
50  VDU1, 27, 1, 90
60  Z=0
70  REPEAT
80  PRINT Z;
90  VDU1, 11
100  Z=Z+1
110  UNTIL Z=6
120  VDU1, 12
130  VDU3

15) Vertical Tab

      VDU1,11

Prints contents of buffer up to tab code, then performs paper skip to next vertical tab stop as defined by a
Vertical Tabulation Program.  If there is no vertical tab stop defined, then the printer performs one line feed.

16) Paper Skip

      VDU1, 12

Performs paper feed to first print line of next page.

17) Relative Vertical Form Skip

      VDU1, 27, 1, 73, 1, i, l, j, l, k  (where i=48+x, j=48+y, k=48+z)

Performs a paper skip of xyz line feeds, where xyz is less than 255.  For example to obtain 100 line feeds
use  VDU1, 27, 1, 73, 1, 49, 1, 28, 1, 48

18) Line Feed

      VDU1, 10

Performs a single line feed

5

16th June 1992

Support Group Application Note No. 002, Issue 1

Support Group Application Note No. 002, Issue 1

Содержание JP101

Страница 1: ...true and correct at the time of printing However the products described in this leaflet are subject to continuous development and improvements and Acorn Computers Limited reserves the right to change its specifications at any time Acorn Computers Limited cannot accept liability for any loss or damage arising from the use of any information or particulars in this leaflet ACORN ECONET and ARCHIMEDES...

Страница 2: ...mmand sequence rather than as characters to be printed they are preceded by an ESC character This has the ASCII code number 27 so to send the ESC character to the printer only we use the command VDU1 27 VDU commands may be strung together so we may send sequences of characters more easily For example to tell the printer that we wish it to print any further characters we send it as double width cha...

Страница 3: ...orizontally The default value on power up or general reset is 10 cpi 8 Vertical Line Spacing VDU1 27 1 69 6 lines per inch VDU1 27 1 70 8 lines per inch These commands set the number of line feeds per inch to the chosen value 9 Variable Vertical Line Spacing VDU1 27 1 38 1 n Sets line spacing to a value between 1 12 inch and 9 12 inch in increments of 1 12 inch The value n is 48 the number of incr...

Страница 4: ... the use of this command to print numbers 0 to 100 in a field width of 60 characters at tab stops of 0 10 15 40 47 characters 10 0 Turn off screen formatting 20 VDU2 Turn on output to printer 30 VDU1 27 1 80 Tell printer horizontal tabulation program starts here 40 PRINT 60 10 15 40 47 Send format information line width followed by positions of tab stops 50 VDU1 27 1 90 Tell printer horizontal tab...

Страница 5: ...tab code then performs paper skip to next vertical tab stop as defined by a Vertical Tabulation Program If there is no vertical tab stop defined then the printer performs one line feed 16 Paper Skip VDU1 12 Performs paper feed to first print line of next page 17 Relative Vertical Form Skip VDU1 27 1 73 1 i l j l k where i 48 x j 48 y k 48 z Performs a paper skip of xyz line feeds where xyz is less...

Страница 6: ... etc 22 Plotter Programming Although it is possible to program graphics dump routines in BASIC the result would be very slow due to the large amount of information that must be processed Any routine of this type should therefore be written in machine code Such a Printer Dump Routine is available from Acorn for the JP101 6 16th June 1992 Support Group Application Note No 002 Issue 1 Support Group A...

Отзывы: