Section 5.6

Codes and Tables

Contents

5.6.0

  Introduction

5.6.1

  Standard Internal Code

5.6.2

  Standard Card Code and Table

5.6.3

  Standard Line Printer Codes and Tables

 
5.6.0   Introduction

The input routines, Primary (OMP's), Basic and Symbolic accept information in character form from paper tape and cards.  The characters to be input in the corresponding code are converted by these routines into characters in the Standard Internal Code given in 5.6.1

The code accepted from paper tape is the Flexowriter Code for 7-track and the Pegasus/Mercury/Sirius Code for 5-track (see CS 308 for both codes).  When Basic and Symbolic routines and OMP output to paper tape then the output is in the corresponding code.

The code accepted from cards is the Standard Card Code given in 5.6.2.  When Basic and Symbolic routines and OMP output to cards then the output is in this code (see 5.6.2)

Basic and Symbolic routines and OMP also output to line printers (the standard code table in the code buffer, see 5.6.3)

Output to magnetic tape and drum is in standard internal code.

The code accepted by Primary Input from the Orion 2/1900 Direct Data link is the standard internal code.  Neither Basic nor Symbolic reads from this device.

 

5.6.1   Standard Internal 6-bit Code

Primary, Basic and Symbolic Input Routines convert input characters into this standard internal code.

Special OMP 150 instructions which operate on characters in this code are those with Z equal to 12, 13, 14, 32, 33, 34, 35, 40, 41 and 51.

Internal
Code

Character

Internal
Code

Character

0

Space 

33

A

1

Asterisk *

34

B

2

Newline NL

35

C

3

Left bracket [

36

D

4

Right bracket ]

37

E

5

Equals =

38

F

6

Apostrophe '

39

G

7

Dummy

40

H

8

Left parenthesis (

41

I

9

Right parenthesis )

42

J

10

Less than  <

43

K

11

Greater than >

44

L

12

Colon :

45

M

13

Vertical bar  |

46

N

14

Error

47

O

15

Solidus /

48

P

16

Zero 0

49

Q

17

1

50

R

18

2

51

S

19

3

52

T

20

4

53

U

21

5

54

V

22

6

55

W

23

7

56

X

24

8

57

Y

25

9

58

Z

26

Character 10

59

Percent %

27

Character 11

60

Pound

28

Character

61

Query ?

29

Plus +

62

Ampersand &

30

Minus -

63

Erase

31

Point .

 

 

32

Comma ,

 

 

 

5.6.2   Standard Card Code

The card code below is that in which all cards to be read by Primary, Basic and Symbolic Input Routines must be punched.  These routines convert the input characters into standard internal code.

Note that for input, alternative punchings (those marked with an asterisk) are allowed for certain characters.

When Basic and Symbolic routines and OMP output to cards then for those characters with alternative punchings for input, the punching not marked with an asterisk is output.

Internal
Code

Character 

Punching 

Internal
Code
 

Character

 

Punching

 

 

 

Blank 

 

  

 

0

Space

Column

31

Point 

10,3,8 

1

Asterisk 

11,4,8 

32 

Comma

0,3,8 

3 

Left bracket 

11,2,8 

33 

A 

10,1 

3 

Left bracket 

*11,7,8 

34 

B 

10,2 

4 

Right bracket 

7,8 

35 

C 

10,3 

5 

Equals 

0,6,8 

36 

D 

10,4 

5 

Equals 

* 3,8 

37 

E 

10,5 

6 

Apostrophe 

* 10,6,8 

38 

F 

10,6 

6 

Apostrophe 

* 4,8 

39 

G 

10,7 

8 

Left 

  

40 

H 

10,8 

  

parenthesis 

5,8 

41 

I 

10,9 

8 

Left 

  

42 

J 

11,1 

 

parenthesis 

*0,4,8 

43 

K 

11,2 

9 

Right 

  

44 

L 

11,3 

  

parenthesis 

6,8 

45 

M 

11,4 

9 

Right 

  

46

N 

11,5 

  

parenthesis 

* 10,4,8 

47 

O 

11,6 

10

Less than

11,6,8

48

11,7

11

Greater than

11,5,8

49

Q

11,8

12

Colon

10,5,8

50

R

11,9

13

Vertical bar

10,7,8

51

S

0,2

13

Vertical bar

* 11,3,8

52

T

0,3

15

Solidus

0,1

53

U

0,4

16

0

 0

54

V

0,5

17

1

 1

55

W

0,6

18

2

 2

56

X

0,7

19

3

 3

57

Y

0,8

20

4

 4

58

Z

0,9

21

5

 5

60

0,2,8

22

6

 6

61

Query

0,5,8

23

7

 7

 

 

 

24

8

 8

 

 

 

25

9

 9

 

 

 

26

     10

* 10,0

 

 

 

27

     11

* 11,0

 

 

 

29

Plus

10

 

 

 

29

Plus

* 10,2,8

 

 

 

30

Minus

11

 

 

 

 

5.6.2.1   Standard Card Code Table

When a card punch is reserved OMP fills the code buffer with the standard card code table.  OMP then outputs (see 5.3.33 (c)) the specified document name preceded by the directive DOCUMENT.

When there has been a check-sum failure in the buffer store then OMP fills the code buffer with the standard code table.  (If a card punch is being used as the monitoring peripheral OMP assumes that the code buffer is filled with the standard table and if it is not then output will be unintelligible).

The standard card code table is:

+12.13.29.31.33.34.35.36
+37.38.39.40.41.63.1.3
+10.11.30.42.43.44.45.46
+47.48.49.50.63.5.15.16
+32.51.52.53.54.55.56,57
+58.60.61.63.15.17.33.42
+63.3.18.34.43.51.60.63
+19.31.32.35.44.52.63.1
+20.36.45.53.63.8.11.12
+21.37.46.54.61.63.5.9
+10.22.38.47.55.63.4.13
+23.39.48.56.63.1.3.4
+5.8.9.10.11.12.13.24
+31.32.40.49.57.60.61.63
+25.41.50.58.63...
 

 

5.6.3   Standard Printer Codes

There are, depending on the installation standard, printer codes for each make of printer and print barrel used.  At the time of writing there are four print barrels for the I.C.T. 665 printer and two print barrels for the Anelex printer.  It is not possible to have printers with different barrels at an installation.

For each character on a print barrel there is a corresponding internal code representation.  The standard internal code (5.6.1) has been used as far as possible but a few small changes have had to be made because for the line printers the internal values 3 and 4 are reserved for paper throw and tabulate respectively and so the characters [ and ] have been given different internal values.  Also some of the characters on a print barrel are not in the standard internal code.  For example the character o/oo (internal value 9) in the Gothenburg code is called per mille.

The Anelex printer has 60 characters on the print barrel but only 59 can be coded.

In the Anelex standard and Swedish barrel the character omitted is underline.

Standard Printer Codes

5.6.3.1   Standard Printer Code Tables

When a line printer is reserved OMP fills the code buffer with the appropriate standard printer code table.  OMP then outputs the specified document name preceded by the directive DOCUMENT.  See 5.3.33 (c).

When there has been a check-sum failure in the buffer store then OMP fills the code buffer with the standard table and so if the program was using a non-standard table then the restart action will need to refill the code buffer with the required code table.

If a line printer is being used as the monitoring peripheral OMP assumes that the standard code table is in the code buffer and if it is not then the output will be unintelligible.  Similarly if a program is run at another installation and if the code tables provided are not the same then the output will be unintelligible  Each type of print barrel has been assigned a number (see Section 14)

I.C.T. 665 Commercial  

 I.C.T. 665 Swedish (Gothenburg)

+16.63.28.63.17.63.30.63  

 +16.63.26.63.17.63.28.63

+18.63.29.63.19.63.31.63  

 +18.63.27.63.19.63.30.63

+20.63.32.63.21.63.60.63  

 +20.63.29.63.21.63.31.63

+22.63.59.63.23.63.8.63  

 +22.63.1.63.23.63.8.63

+24.63.9.63.25.63.1.63  

 +24.63.9.63.25.63.62.63

+26.63.62.63.27.63.15.63  

 +15.63.33.63.34.63.35.63

+33.63.34.63.35.63.36.63  

 +36.63.37.63.38.63.39.63

+37.63.38.63.39.63.40.63  

 +40.63.41.63.42.63.43.63

+33.63.34.63.35.63.36.63  

 +36.63.37.63.38.63.39.63

+41.63.42.63.43.63.44.63  

 +44.63.45.63.46.63.47.63

+45.63.46.63.47.63.48.63  

 +48.63.49.63.50.63.51.63

+49.63.50.63.51.63.52.63  

 +52.63.53.63.54.63.55.63

+53.63.54.63.55.63.56.63  

 +56.63.57.63.58.63.59.63

+57.63.58.63....  

 +60.63.61.63....

 

 I.C.T. 665 Scientific  

 Anelex Standard

+16.63.5.63.17.63.30.63  

 +16.63.28.63.17.63.30.63

+18.63.29.63.19.63.31.63  

 +18.63.29.63.19.63.31.63

+20.63.32.63.21.63.60.63  

 +20.63.60.63.21.63.62.63

+22.63.6.63.23.63.8.63  

 +22.63.8.63.23.63.9.63

+24.63.9.63.25.63.1.63  

 +24.63.1.63.25.63.15.63

+10.63.61.63.11.63.15.63  

 +26.63.27.63.33.63.34.63

+33.63.34.63.35.63.36.63  

 +35.63.36.63.37.63.38.63

+37.63.38.63.39.63.40.63  

 +39.63.40.63.41.63.42.63

+33.63.34.63.35.63.36.63  

 +43.63.44.63.45.63.46.63

+41.63.42.63.43.63.44.63  

 +47.63.48.63.49.63.50.63

+45.63.46.63.47.63.48.63  

 +51.63.52.63.53.63.54.63

+49.63.50.63.51.63.52.63  

 +55.63.56.63.57.63.58.63

+53.63.54.63.55.63.56.63  

 +12.63.6.63.7.63.14.63

+57.63.58.63....  

 +10.63.11.63.5.63..63

  

 +13.63.61.63.32.63.59.63

 

 

I.C.T. 665 Swedish (Stockholm)

Anelex Swedish

+16.63.1.63.17.63.12.63  

+16.63.12.63.17.63.30.63

+18.63.32.63.19.63.30.63  

+18.63.29.63.19.63.31.63

+20.63.29.63.21.63.31.63  

+20.63.32.63.21.63.27.63

+22.63.5.63.23.63.28.63  

+22.63.59.63.23.63.60.63

+24.63.8.63.25.63.9.63  

+24.63.1.63.25.63.15.63

+15.63.33.63.34.63.35.63  

+61.63.62.63.33.63.34.63

+36.63.37.63.38.63.39.63  

+35.63.36.63.37.63.38.63

+40.63.41.63.42.63.43.63  

+39.63.40.63.41.63.42.63

+36.63.37.63.38.63.39.63  

+43.63.44.63.45.63.46.63

+44.63.45.63.46.63.47.63  

+47.63.48.63.49.63.50.63

+48.63.49.63.50.63.51.63  

+51.63.52.63.53.63.54.63

+52.63.53.63.54.63.55.63  

+55.63.56.63.57.63.58.63

+56.63.57.63.58.63.59.63  

+8.63.9.63.7.63.14.63

+60.63.61.63....  

+10.63.11.63.5.63.0.63

  

+13.63.26.63.6.63.28.63

 

5.6.4   6-bit Internal Code of Characters from 5-track

Primary, Basic and Symbolic Input Routines convert 5-track input characters into this internal code.

Internal Code

Character

Internal Code

Character

0

SP

33

A

1

*

34

B

2

LF

35

C

5

=

36

D

8

(

37

E

9

)

38

F

11

>

39

G

12

40

H

13

 →

41

I

14

42

J

15

/

43

K

16

0

44

L

17

1

45

M

18

2

46

N and n

19

3

47

O

20

4

48

P

21

5

49

Q

22

6

50

R

23

7

51

S

24

8

52

T

25

9

53

U

29

+

54

V and v

30

-

55

W

31

.

56

X and x

32

,

57

Y

 

 

58

Z

 

 

60

 

 

61

?

 

 

63

ER