• Aucun résultat trouvé

Appendix L. Optional Character Sets

Dans le document Station System (Page 196-200)

L.1. DEFINING THE DOT MATRIX

Each character is defined by a 10-by-15 dot matrix (cell). Table L-1 shows typical use of the matrix to create a standard alphanumeric character. Columns 1, 2, and 10 and rows 1, 2, 3, and 15 are usually blank to provide character separation. Rows 1 and 2 are usually used for accent marks; rows 4 through 12 are used for the normal character; and rows 13 and 14 are used for descenders.

Table L-1. Typical Use of the Character Dot Matrix

Column

Row 1 2 3 4 5 6 7 8 9 0 Typical Use

1 + +A A A A A A A + Blank or used for accents 2 + +A A A A A A A + Blank or used for accents 3 + + 1 1 1 1 1 1 1 + Usually blank

4 + + 0 0 0 0 0 0 0 + Normal character 5 + + 0 0 0 0 0 0 0 + Normal character 6 + + 0 0 0 0 0 0 0 + Normal character 7 + + 0 0 0 0 0 0 0 + Normal character 8 + + 0 0 0 0 0 0 0 + Normal character 9 + + 0 0 0 0 0 0 0 + Normal character 10 + + 0 0 0 0 0 0 0 + Normal character 11 + + 0 0 0 0 0 0 0 + Normal character 12 + + 0 0 0 0 0 0 0 + Normal character

13 + + D D D D D D D + Blank or used for descenders 14 + + D D D D D D D + Blank or used for descenders 15 + + + + + + + + + + Usually blank

L-2

SPERRY UTS 30 SINGLE STATION

System Reference UP-9799 Rev. 1

where:

+

is normally blank, but can be programmed A

is accent area 0

is normal character area D

is descender area

The positions of the special emphasis characters are defined by hardware:

Row8 Row 15 Column 1

Strike-through Underscore Column separator

A sequence of 15 ASCII character pairs defines each matrix. Each byte in the pair is biased by hexadecimal 40. Byte 1 represents the left side of the dot matrix and byte 2 represents the right side:

~

01BCXXSS 01SSSSSX where:

x

s

B

c

is loadable defined dot of the 1 O-by-15 dot matrix, equivalent to D, A, and 0 in Table L-1

is standard loadable defined dot of the 10-column dot matrix, equivalent to 0 in Table L-1

blink dot

blank dot (used for nondisplayable control characters)

Thus, each pair provides a 10-dot row definition for the loadable cell which begins at the address defined by YYY in the loading sequence. Since 30 bytes are required to define a single character,

UP-9799 Rev. 1

SPERRY UTS 30 SINGLE STATION

System Reference L-3

L.2. LOADING CHARACTERS FROM THE HOST TO THE UTS 30

The sequence sent from the host to load the character generator memory in the UTS 30 is:

STX ESC SO 0417 XXVYY XXYYY MH MV text ETX BCC where:

0417

xx

YVY

MH

MV

text

are the four ASCII characters identifying this as a character set load.

is the 2-character ASCII identifier of the set to be loaded.

is the address (hexadecimal) of the first character to be loaded consisting- of three hexadecimal digits, each biased by bits 5 and 6 set. (A hexadecimal address of 070 biased by hexadecimal 60 becomes the three characters 060, 067, and 060.) The standard character set memory addresses are hexadecimal 00 through FF; the optional character set memory addresses are hexadecimal 100 through 1 FF.

The first XXYYY is the start address; the second is a duplicate check.

is the character matrix identifier for the horizontal dots per character, biased by bit 6 set. The maximum is 12 horizontal dots per character. This total includes the blink and the blank bits. With bit 6 set, the code for this control character is the ASCII character L (04C hexadecimal).

is the character matrix identifier for vertical dots per character, biased by bit 6 set. For the UTS 30, this matrix should be set for 15 (OF hexadecimal) vertical dots per character. With bit 6 set, the code for this control character is the ASCII character 0 (04F hexadecimal).

is a string of ASCII characters, biased by bit 6 set. Each character represents a string of dots and/or attributes (device-dependent) which defines each horizontal row of the character. The number of ASCII characters required to define a character font is MH divided by 6 (rounded up) times MV.

Figure L-1 is an example of defining one character which is to be sent to the optional character set memory at address 120 (hexadecimal). The identifier (XX) is SP (special). The text message is:

STX ESC SO 0417 S P 61 62 60 SP 61 62 60 4C 4F (text hexadecimal values shown in the figure) ETX

L-4

SPERRY UTS 30 SINGLE STATION System Reference

40 40 o o o 0 o o I o o 0

40 40 ...

40 40 ...

41 7C ... 00000 ..

42 42 .. 0 ... 0.

42 40 .. 0 ...

42 40 .. 0 ...

41 7C ... 00000 ..

40 42 ... 0.

40 42 ... 0.

42 42 .. 0 ... 0.

41 7C ... 00000 ..

40 40 ...

40 40 ...

40 40 ...

Figure L-1. Example of Optional Character Definition and Addressing

UP-9799 Rev. 1

When loading the UTS 30 character set memory from the host, multiple load blocks are required to load an entire set because of error recovery considerations. Each block must have its own header that includes the address of the first character to be loaded within that block. Several 30-byte sequences (15 pairs) can be included in one text block with no intervening address (XXYYY), provided that the subsequent sequences within the block load the next sequential characters.

The escape sequence ESC U sent by the host causes the UTS 30 to return the identification of the set which was loaded last. The host request must be by itself in a text message:

SOH ESC U ETX

The UTS 30 response to the message will be in a subsequent text message whose format is:

ESC VT 20 20 00 SI ESC

so;

0 0 7

xx

PP

xxa __

ETX

where XX is the ASCII character pair defined above. The XX of an empty character set is @@.

PP is a fixed value. It represents a font size of 00, biased by 50 (hexadecimal).

a __

represents the size of the font identified by XX. The range of Q __ is from 00 through 1 FF (hexadecimal)

UP-9799 Rev. 1

SPERRY UTS 30 SINGLE STATION System Reference

L.3. USING THE OPTIONAL CHARACTER SET

L-5

Characters loaded to the standard character space (hexadecimal 00 through FF addresses) will overwrite the standard set and remain in memory until the UTS 30 is reloaded from the UNISCOPE-mode system control software. Characters loaded into the optional character set memory can be selected by the host character-by-character using the special escape sequence ESC 22 to set a hardware-sensed bit in memory. Unless this sequence is used, all characters are displayed from the standard character set. The message containing the sequence can be any valid text message which contains the following string:

ESC 22 text ESC 20

The ESC 22 sequence begins the optional character set selection sequence. The text is spaces or ASCII code. The ESC 20 terminates the selection string. The terminal transmits the selection string for all strings which have the optional character set selection bit set.

From the keyboard, the optional character set is selected by pressing the FCTN and ; (semicolon) keys. Setting the optional character set bit either through the UTS 30 keyboard or by using the host ESC 22 sequence causes the character displayed in that position to come from the optional character set. If the emphasis-protect bit is set by a host or terminal-resident application program, the operator cannot make the position revert to a character from the standard character set.

Dans le document Station System (Page 196-200)