• Keine Ergebnisse gefunden

CHARACTER LOCATIONS

Im Dokument SERIES 200 (Seite 156-200)

DIVISOR

=

2 CHARACTER LOCATIONS

SECTION VIII. INSTRUCTIONS

B FIELD

=

1+2+4

=

7 ~ CHARACTER LOCATIONS

I

B ADDRESS

I

---

DIVIDEND = 4

CHARACTER LOCATIONS

The quotient (+319) is stored in the leftmost character locations of the B field. The units position of the quotient (location 950) is equal to B-N

a+N

dd-2, or 950-2+4-2. The remainder is stored in the rightmost locations of the B field; its leftmost location (location 952) is equal to B-Na+Ndd' or 950-2+4; its rightmost location (location 953) is equal to B+Ndd-l, or 950+4-1.

The result of the operation is shown below.

FINAL SETTING OF AAR

FORMAT OP CODE

o.

-b. _

c. _

FUNCTION

A ADDRESS

-FINAL SETTING OF BAR

~

QUOTIENT

B ADDRESS

Format a: The signed decimal data in the A field is added algebraically to the signed decimal data in the B field. The result is stored in the B field.

Format b: The signed decimal data in the A field is added to itself. The result is stored in the A field.

Format c: The signed decimal data specified by the contents of the A-address register (AAR) is added algebraically to the signed decimal data specified by the contents of the B -ad-dress register (BAR). The result is stored in the B field.

WORD MARKS

Format a: The B operand must have a defining word mark. It is this word mark that terminates the operation. The A operand m.ust have a word mark only if it is shorter than the B operand. In this case, transmission of data from the A operand stops after the A-operand word mark is sensed. If the A field is longer than the B field, the high-order characters of the A field that exceed the field length defined by the B-operand word mark are not processed.

Format b: The A operand must have a defining word mark.

Format c: The B operand must have a defining word mark. The A operand must have a word mark only if it is shorter than the B operand •.

ADDRESS REGISTERS AFTER OPERATION

SR AAR BAR

Format a: NXT A-'Nw B-Nb

Format b: NXT A-Na A-Na

Format c: NXT Ap-Nw Bp-Nb

NOTES

1. The algebraic sign control for the add operation is shown below.

Sign of B field

Normalized sign of A or B field, whichever is greater (-=10,+=01)

2. All zone bits in the result field are set to zeros except for the units position.

(i.

e.,

the sign of the result).

3.

This instruction treats both operands as signed decimal data. It will pro-duce ambiguous results if used to manipulate non-decimal data. Particularly, if the four numeric bits of any character have a binary numeric value of 12 or more (octal 14, 15, 16, and 17), the character is treated as if it were a zero, though its zone bits are retained. (In Type 201 or 201-1 proces sors, the zone and numeric bits of octal 14, 15, 16, and 17 are handled as zeros.) The two remaining cases (octal 12 and 13) are unspecified.

4. The overflow and zero balance indicators are set by an add operation.

5. When the central processor is in the l1Sl1 mode o{processing, the zone bits are not changed in any character other than the units position of the B field.

EXAMPLE

Add Bond Deductions to Total Deductions.

Description Bond Deductions Total Deductions

8-15

Tag BDED TDED

#2-139

SECTION VIII. INSTRUCTIONS

EASYCODER

CODING FORM

PROBLEM _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ PROGRAMMER _ _ _ _ _ _ DATE _ _ _ _ _ PAGE_OF_

I CARD IJI~I

i

NUMBER I~i~i LOCATION

I

OP~"06;~O ~

I

OPERANDS

LI ZJ34J5L6J7!8 14[15 20lz1 1 1 6263

I

I

: " I IA laDE

D. TDE' 0

5

SUBTRACT

FORMAT

OP CODE A ADDRESS B ADDRESS

o.

-b.

-c.

-FUNCTION

ForITlat a: The signed deciITlal data in the A field is subtracted algebraically froITl the signed deciITlal data in the B field. The result is stored in the B field.

ForITlat b: The signed deciITlal data in the A field is subtracted froITl itself. The result is stored in the A field. If the A-field sign is ITlinus, the result is a ITlinus zero. If the A-field sign is plus, the result is a plus zero (with norITlalized Sign).

ForITlat c: The signed deciITlal data specified by the contents of the A-address register (AAR) is subtracted algebraically froITl the signed deciITlal data specified by the contents of the B-address register (BAR). The result is stored in the B field.

WORD MARKS

80

ForITlat a: The B operand ITlust have a defining word ITlark. The A operand ITlust have a word ITlark only if it is shorter than the B operand. In this case, transITlission of data froITl the A operand stops after the A-operand word ITlark is sensed. If the A field is longer than the B field, the high-order characters of the A field that exceed" the field length defined by the B -operand word ITlark are not proces sed.

ForITlat b: The A operand ITlust have a defining word ITlark.

ForITlat c: The B operand ITlust have a defining word ITlark. The A operand ITlust have a word ITlark only if it is shorter than the B operand.

ADDRESS REGISTERS AFTER OPERATION

SR AAR BAR

ForITlat a: NXT A-Nw B-Nb

ForITlat b: NXT A-Na A-Na

ForITlat c: NXT Ap-Nw B -Nb P

NOTES

1. Algebraic sign control for the subtract operation is smnrnarized below.

+ +

Comp Comp Normalized sign of A or B field, which-ever is greater (- = 10,

+ =

01)

+ +

True True Sign of B fleld

2. All zone bits in the result field are set to zeros except for the units position (i.

e.,

the sign of the result).

3. This instruction treats both operands as' signed decimal data. It will pro-duce ambiguous results if used to manipulate non-decimal data. Partic-ularly' if the four numeric bits of any character have a binary numeric value of 12 or more (octal 14, 15, 16, and 17), the character is treated as if it were a zero, though its zone bits are retained. (In Type 201 or 201-1 processors, the zone and numeric bits of octal 14, 15, 16, and 17 are

handled as zeros.) The two remaining cases (octal 12 and 13) are unspecified.

4. The overflow and zero balance indicators are set by a subtract operation.

5. When the central processor is in the "S" mode of processing, the zone bits are not changed in any character other than the units position of the B field.

EXAMPLE

Subtract the contents of the five-character fields starting at location 940, 945, 950, and 955 from the contents of the eight-character fields starting at locations 648, 656, 664, and 672.

EASYCODER

CODING FORM

PROBLEM _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ PROGRAMMER _ _ _ _ _ _ DATE _ _ _ _ _ PAGE_OF_

CARD r~ LOCATION OPERATION

OPERANDS

NUMBER f ~ CODE

1 213 415 6 7 8 1415 2021 1 62 63 90

I

:

S 955 .6.72

1 I S

i

I S

I I S

I BA I

BINARY ADD FORMAT

OP CODE A ADDRESS B ADDRESS

o.

-b.

-c.

-

8-17 #2-139

SECTION VIII. INSTRUCTIONS

FUNCTION

For'mat a: The data in the A field is added in binary fashion, character by character, to the data in the B field. The result is stored in the B field.

Format b: The data in the A field is added, character bycharacter, to itself. The result is stored in the A field.

Format c: The data specified by the contents of the A ... address register (AAR) is added, char-acter by charchar-acter, to the data specified by the contents of the B -address register (BAR). The result is stored in the B field.

WORD MARKS

Format a: The B operand must have a defining word mark. It is this word mark that termi-nates the operation. The A operand must have a word mark only if it is shorter than the B operand. in this case the transmission of data from the A field stops after the A-operand word mark is sensed. If the Afield is longer than the B field, the high-order characters of the A field that ex!=eed the field length defined by the 13 -operand word mark are not processed.

Format b: The A operand must have a defining word mark.

Format c: The B operand must have a defining word mark. The A operand must have a word mark only if it is shorter than the B operand.

ADDRESS REGISTERS AFTER OPERATION

SR AAR BAR

Format a: NXT A-Nw B-Nb

Format b: NXT A-Na' A-Na Format c: NXT Ap-Nw B -Nb

P NOTES

1. The overflow and zero balance indicators are not set by a binary add operation.

2. Format b of the BA instruction has the effect of doubling the value stored in the A field; i. e., it shifts the contents of the A field one bit position to the left.

EXAMPLE

Modify the B address of the instruction tagged B 7 by the value stored in the location tagged TEN (assuming the use of the two-character addressing mode).

EASYCODER

COOING FORM

PROBLEM _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ PROGRAMMER _ _ _ _ _ _ OATE _ _ _ _ _ PAGE_OF_

CARD ll~ LOCATION OPERATION

OPERANDS NUMBER ~ ~ CODE

I 213 415 6 7 8 1415 2021 I I I 6263 80

I

:

B,A TEN.~,8 7+.4.

BS

BINARY SUBTRACT

FORMAT

OP CODE A ADDRESS B ADDRESS

a.

-b.

- ~

c.

-FUNCTION

Format a: Each six-bit character in the A field is converted to its ones complement and added, in binary fashion, character by character, to the data in the B field (see page 8-4).

A simulated carry is added with the characters in the units position. The result is stored in the B field.

Format b: Each six-bit character in the A field is converted to its ones complement and added, character by character, to itself. A simulated carry is added with the characters in the units position. In effect, this format of the binary subtract instruction re-places the contents of the A field with zeros.

Format c: Each six-bit character specified by the contents of the A-address register (AAR) is converted to its ones complement and added, character by character, to the data specified by the contents of the B-address register {BAR}. A simulated carry is added with the characters in the units ,position. The result is stored in the B field.

WORD MARKS

Format a: The word mark associated with the B operand terminates the operation. The A operand must have a word mark only ii£ it is shorter than the B operand. In this case, transmission of data from the A field stops after the A-operand word mark is sensed. If the A operand is longer than the B operand, the characters of the A operand that exceed the field length defined by the B -operand word mark are not processed.

Format b: The A operand must have a defining word mark.

Formatc: The B operand must have a defining word mark. The A operand must have a word mark only if it is shorter than the B operand.

ADDRESS REGISTERS AFTER OPERATION

SR AAR BAR

Format a: NXT A-Nw B-Nb

Format b: NXT A-N A-N

a a

Format c: NXT A -N

P w Bp-Nb

8-19 #=2-139

SECTION VIII. INSTRUCTIONS

NOTES

1. The overflow and zero balance indicators are not set by a binary subtract operation.

2. Formats a. and c. can produce negative results. A negative result is stored in the B field in its twos-complement form. In this case, the absolute nu-merical value of the result can be obtained by recomplementing the result stored in the B field. A negative result is detected only if the programmer provides appropriate coding to ascertain whether or not operands .will pro-duce such a result.

EXAMPLE

Zero the field starting at location TOTAL.

EASYCODER

CODING FORM

PROBLEM _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ PROGRAMMER _ _ _ _ _ _ DATE _ _ _ _ _ PAGE_OF_

CARD fl~ LOCATION OPERATION OPERANDS

NUMBER ~ ~ CODE

1 213 415 6 7 8

I

1

1415 2021 6263

~s TOTAL.

NOTE: Zone bits as well as numeric bits are cleared to zero by this operation.

ZA

I ZERO AND ADD I IFEATURES 010 & 0111

FORMAT

OP CODE A ADDRESS B ADDRESS

o. b. c.

- - -

-FUNCTION

80

Format a: The data in the A field is transferred, character by character, right to left, to the B field. Zone bits in the B field are set to zero in all positions except the units position. The sign of the result field is based on the sign of the A field (see note 1).

If the high-order character of the A field is transferred before the operation

term~nates, the remaining B field characters are cleared to zeros.

Format b: The data in the A field is converted to an all-numeric format; i. e., the zone bits of all positions in the field except the units position are set to zero. The result remains in the A field. The sign of the A field is not changed by the operation (see note 1).

Format c: The data specified by the contents of the A-address register (AAR) is transferred to the field specified by the contents of the B-address register (BAR). Zone bits in the B field are set to zero in all positions except the units position. The sign of the result field is based on the sign of the A 'field (see note 1). If the high-order character of the A field is transferred before the operation terminates, the remaining B-field characters are cleared to zeros.

WORD MARKS

Format a: The B operand must have a defining word mark. The A operand must have a word mark only if it is shorter than the B operand. In this case, transfer of data from the A operand stops after the A-operand word mark is sensed. If the A field is longer than the B field, the high-order characters of the A field that exceed the field length defined by the B-operand word mark are not processed.

Format b: The A operand must have a defining word mark.

4. When the central processor is in the "S" mode ofprocessing and the four numeric bits of any character have a value of 148 or more (128 in the 4200), the character is treated as if it were a zero. The zero balance indicator is set or reset accordingly.

EXAMPLE

Transfer the contents of the field tagged ORATE to the field tagged NRATE, setting a1l zone bits in NRA TE (except in the units position) to zeros.

SECTION VIII. INSTRUCTIONS

zs I

ZERO AND SUBTRACT

I

FEATURES 010 & 011

FORMAT

OP CODE A ADDRESS B ADDRESS

o.

-b.

-c.

-FUNCTION

Format a: The data in the A field is transferred to the B field with the opposite sign. Zone bits in the B field are set to zeros in all positions except the units position. If the high-order character of the A field is transferred before the operation terminates, the remaining B-field characters are cleared to zeros.

Format b: The data in the A field is converted to an all-numeric format; i. e., the zone bits of all positions in the field except the units position are set to zero. The result re-mains in the A field with its sign reversed.

Format c: The data specified by the contents of the A-address register (AAR) is transferred with the opposite sign to the field specified by the contents of the B -address register (BAR). Zone bits in the B field are set to zero in all positions except the units position. If the high-order character of the A field is transferred before the oper-ation terminates, the remaining B -field characters are cleared to zeros.

WORD MARKS

Format a: The B operand must have a defining word mark. The A operand must have a word mark only if it is shorter than the B operand. In this case, transfer of data from the A operand stops after the A-operand word mark is sensed. If the A field is longer than the B field, the high-order characters of the A field that exceed the field length defined by the B-operand word mark are not processed.

Format b: The A operand must have a defining word mark.

Format c: The B ope rand must have a defining word mark. The A operand must have a word mark only if it is shorter than the B operand.

ADDRESS REGISTERS AFTER OPERATION

SR AAR BAR

Format a: NXT A-N

w B-N

b

Format b: NXT A-Na A-Na

Format c: NXT Ap-Nw Bp-Nb

NOTES

1. A plus sign in the units position of the result field is always expressed in its normalized form (01).

2. B -field punctuation is not changed by this operation.

3. This instruction does not set the overflow and zero balance indicators.

4. When the central processor is in the "S" mode and the four numeric bits of any character have a value of 148 or more (128 in the 4200), the character is

treated as if it were a zero. The zero balance indicator is set or reset accordingly.

EXAMPLE

Change the sign of the data in the field tagged PROFIT.

EASYCODER

CODING FORM

PROBLEM _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ PROGRAMMER _ _ _ _ _ _ DATE _ _ _ _ _ PAGE_OF_

CARD ~I~ LOCATION OPERATION

OPERANDS

NUMBER ~ ~ CODE

1 2 3 4 5 6 7 8 1415 2021 I 1 6263 80

ZS PR.OF IT

-..1

M I

MULTIPLY

I

FORMAT

OP CODE A ADDRESS B ADDRESS

o.

-b.

-c.

-FUNCTION

Format a: The signed decimal integer in the A field is multiplied by the signed decimal integer in the leftmost locations of the B field. The product is stored, right - justified, in the B field.

Format b: The signed decimal integer in the A field is multiplied by the signed decimal integer in the leftmost locations of the field specified by the contents of the B-address reg-ister (BAR). The product is stored, right-justified, in the B field.

Format c: The signed decimal integer in the field specified by the contents of the A-address register (AAR) is multiplied by the signed decimal integer in the leftmost locations of the field specified by the contents of BAR. The produ.ct is stored, right-justified, in the B field.

WORD MARKS

Formats a, b, and c:

Word marks are required in the high-order locations of both the A and B fields.

All other B-field locations must not contain word marks.

8-23 # 2-139

SECTION VIII. INSTRUCTIONS

\

ADDRESS REGISTERS AFTER OPERATION

SR AAR BAR

Format a: 'll.T"V".,.,

A-Na B-Nb

~'I..n.. .L

Format b: NXT A-Na Bp-Nb

Format c: NXT Ap-Na Bp-Nb

NOTES

1. The A address of a Decimal Multiply instruction specifies the units position of the multiplicand. The B address specifies a location which is N a +l lo-cations to the right of the multiplier, since the B field :must contain the multiplier plus enough additional locations (to the right of the multiplier) to provide for the development of the product. I Thus, the total nu:mber of character locations in the B field :must be one greater than the sum of the number of characters in the multiplicand and the multiplier. For example, in a multiplication operation involving a 3 -character m.ultiplier and a 5-character multiplicand, 9 positions (5+3+1) m.ust be provided in the B field.

2. Algebraic sign control for the multiply operation is shown below. The sign of the product is expressed in its normalized form (-=10, +=01).

+ +

+ +

+ +

3. The product is stored (right-justified) in the entire B field, with the unused high-order positions of the B field cleared to zeros. As a result of the operation, the multiplier (initially stored in the B field) is destroyed.

Therefore, if the multiplier is to be used more than once, it should be preserved in another storage field.

4. The zero balance indicator is turned ON if the product of the multiply oper-ation is equal to zero; otherwise, the indicator is turned OFF by the operoper-ation.

f

5. This instruction treats both operands as signed decimal data. It will pro-duce ambiguous results if used to manipulate-non-decimal data. Particularly, if the four numeric bits of a character have a binary numeric value of 12 or more (octal 14, IS, 16, or 17), the character is treated as if it were a zero. The two remaining cases (octal 12 and 13) are unspecified.

6. This instruction is standard on all processors but the Type 201, on which it is not available.

7. If the A & B operands overlap, then the results are unspecified.

EXAMPLE

Multiply the five-character field tagged CAND by the three-character field whose rightmost character location is six (5+1) less than the location tagged PROD.

Store the result, right-justified, in PROD.

EASYCODER

COOING FORM

PROBLEM _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ PROGRAMMER _ _ _ _ _ _ DATE _ _ _ _ _ PAGE_OF_

CARD '~l~ LOCATION OPERATION

OPERANDS

NUMBER ~ ~ CODE

1 2/3 415 6 7 8 1415 2021 6263 80

I

:

~ CAND. PROD i

D

DIVIDE

FORMAT

OP CODE A ADDRESS B ADDRESS

o.

-b.

-c.

-FUNCTION

Form.at a: The signed decim.al integer who se leftm.ost location is B is divided by the signed deci-m.al integer in the A field. The quotient is stored in the leftm.ost locations of the B field; the rem.ainder is stored in the rightm.ost locations of the B field (see page 8-12) •.

Form.at b: The signed decim.al integer whose leftm.ost location is specified by the contents of the B -address register (BAR) is divided by the signed decim.al integer in the A field.

The quotient is stored in the leftm.ost locations of the B field; the rem.ainder is stored in the rightm.ost locations of the B field (see page 8-1Z).

Form.at c: The signed decim.al integer whose leftm.ost location is specified by the contents of the B -address register (BAR) is divided by the signed decim.al integer in the field speci-fied by the contents of the A-address register (AAR). The quotient is stored in the

Form.at c: The signed decim.al integer whose leftm.ost location is specified by the contents of the B -address register (BAR) is divided by the signed decim.al integer in the field speci-fied by the contents of the A-address register (AAR). The quotient is stored in the

Im Dokument SERIES 200 (Seite 156-200)