Download Print this page

Exercises - RCA Spectra 70 Training Manual

System
Hide thumbs

Advertisement

Table of Contents
Example #2
Editing with Decimal Point and at least two zeros
present.
HSM BEFORE
AND AFTER
EXECUTION
HSM BEFORE
EXECUTION
ASSEMBLY
INSTRUCTION
HSM AFTER
EXECUTION
AMT
100 01 02 03
2 0 1 - - - - - - - 1
100 00 00
0+
MASK
00 01 02 03 04 05 06 07 08 09 10
-
d
d
d
d
S
d
d
-
OPERATION
OPERAND
ED
MASK (11), AMT
MASK
00 01 02 03 04 05 06 07 08 09 10
o
0
o
CONDITION CODE
==
0
Examples 3 and 4
Same Mask - Result after positive and negative field.
HSM BEFORE
AND AFTER
EXECUTION
HSM BEFORE
EXECUTION
ASSEMBLY
INSTRUCTION
HSM AFTER
EXAMPLE 3
EXAMPLE 4
I
00 01 02 03 04 05 06 07 08 09
2 1 t - - - - - - - - i
- d d d
d d e C R
OPERATION
OPERAND
ED
MASK (10), AMT
Exa.mple 3
Example 4
EXECUTION
~1 1--------
1
-
2
- . -
3
4
_ _
_
00 01 02 03 04 05 06 07 08 09
- - 4 2 . 7 5 Q C R
0-..,.1
TRIGGER~
O~I-----o>O~
CONDITION CODE
=
2
CONDITION CODE
~
1
Note that in Example 3 the significance trigger is set
to zero by the plus sign in the packed sending field.
In Example 4, however, the minus sign in the packed
field does not set the trigger back to zero.
35
Example 5
Editing multiple fields.
HSM BEFORE
AND AFTER
EXECUTION
HSM BEFORE
EXECUTION
ASSEMBLY
INSTRUCTION
HSM AFTER
EXECUTION
SIGNIFICANCE
TRIGGER
AMTS
00 01 02 03 04 05
01 23 7+ 00 29 5-
MASK
121
I o~
d d S • d d C
R
f f f - d d S • d d C
R2~1
OPERAND
MASK(22), AMTS
MASK
121
I
o~
_
1 2
3 7 ________ 2
9 5 C
R2~!
o~
1 - - - 7 0
)
l----'>~O
CONDITION CODE
=
1 (Based on last field processed)
It
should be noted that the field separator character
resets the significance trigger to zero, so that proper
suppression of unwanted characters will take place in
the next field.
As can be seen in the previous examples the value in
the Edit Mask controls execution of the instruction
and the insertion of digits from the packed field.
Exercise:
VAL
ACC
BOH
DEST
J
J
J
J
00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15
01 24 7+ 00 00
0+
00 00 47 21
~
15 0+ 27 50 1+
Based on the packed format and symbolic values as-
signed as above, show the result of each instruction
in the locations provided and based on the mask as
shown in Column II.
Symbols representing characters in the mask are as
follows:
BLANK
e
=
MINUS
d
DIGIT SELECT
*
ASTERISK
s
=
SIGNIFICANCE START
f
=
FIELD SEPARATOR
INSERTION CHARACTERS

Advertisement

Table of Contents
loading

  Also See for RCA Spectra 70

  Related Manuals for RCA Spectra 70

This manual is also suitable for:

Spectra 70/25