GS * n1 n2 [ d ] n1 n2 D1 ...... Dn

[Function]

Defining the Download Bit Image (LOGO)

[Code]

<1D>H<2A>H<n1><n2> [ < d > ]

[Range]

{1 =< n1 =< 7F} Defines horizontal size of downloaded image.

 

{1 =< n2 =< F8} Defines the vertical size of downloaded image.

[Outline]

Defines downloading bit images of the number of dots specified by n1 and n2.

 

The numbers of dots are n1 8 in horizontal direction and n2 8 in vertical direction.

 

The number of horizontal bytes can be up to 7F, but only the first 48 (30H) bytes will

 

be printed. The rest will be rejected.

 

¥

d indicates bit image data.

 

¥

The downloaded bit image thus defined is valid till it is redefined or ESC _ is

 

 

executed. After power off, the downloaded bit image is maintained even by the

 

 

execution of Initialize command.

[Caution]

¥

This downloaded bit image is also printed at the self-test printing.

 

¥

The maximum size of the Bit image cannot exceed 16 KB.

 

¥

Relations between the bit image data and the dot defined are shown below.

When n1 = 30 (1E Hex)

30 8 dot = 240 dot

1

2

3

. . . . . . . .

28

29

30

 

31

32

33

. . . . . . . .

58

59

60

. . . . . . . .

61

62

63

88

89

90

 

 

 

 

. . . . . . . .

 

 

30*n2

 

 

 

 

 

 

n2

LSB 1 2 3 4 5 6 7 8 MSB

[See Also]

GS /

[Sample Program]

GOSUB IMG

PRINT #1, CHR$ (&H1D) + “/” + CHR$ (0); PRINT #1, CHR$ (&H1D) + “/” + CHR$ (1); PRINT #1, CHR$ (&H1D) + “/” + CHR$ (2); PRINT #1, CHR$ (&H1D) + “/” + CHR$ (3);

END

IMG:

n 1 = 10 : n 2= 50

PRINT #1, CHR$ (&H1D) + “*”; PRINT #1, CHR$ (n1) + CHR$ (n2); FOR I=1 TO n2

FOR J=1 TO n1 PRINT #1, CHR$ (J);

NEXT I

NEXT J

RETURN

Ñ 43 Ñ

Page 45
Image 45
Citizen Systems Model CMP-10 manual GS * n1 n2 d n1 n2 D1 ...... Dn, See Also Sample Program