Download Print this page

Examples - RCA Spectra 70 Training Manual

System
Hide thumbs

Advertisement

Table of Contents
~M
BEFORE
EXECUTION
ASSEMBLY
INSTRUCTION
GENERATED
MASK
29
00 01 02 03 04 05 06 07 08
d
d
d
d
d
d
d e
-
OPERATION
OPERAND
ED
MASK (9), AMT
OP
L
B1
D1
B2
D2
INSTRUCTION
I
DE16! 8
1
1 10
1
2900 10
1
1 10
1
2000 10
I
General Register one contains 0000
HSM AFTER
EXECUTION
29
00 01 02 03 04 05 06 07 08
- -
-
-
2
SIGNIFICANCE~
O---~~
1
TRIGG ER SETTING*
3
7
8 +
*To determine when to insert the fill character in
the Edit Mask, the hardware employs a Significance
Trigger. This trigger is set to zero initially. The
zero setting specifies the fill character in the edit
mask positions. The trigger retains a zero setting
until either:
1.
A Digit Select character in the mask references
the first non-zero numeric digit in the packed
(sending) field,
2.
OR
A Significance Start character has been encoun-
tered in the Edit Mask field.
The trigger is set to 1 after either of these conditions.
The 1 setting specifies insertion of the digit (regard-
less of value) from the packed field in the Edit Mask
where a Digit Select character is present. The 1 set-
ting also specifies insertion of editing symbols pres-
ent in the Edit Mask.
The setting of 1 is retained until either a plus sign is
encountered in the packed field or a field separator
character is encountered in the Edit Mask. Either of
these conditions resets the trigger to zero.
The Edit instruction sets the Condition Code to zero
ifthe packed field has a zero value, to one if the value
is negative, and to two if the value is positive.
34
Example #1
The mask that would edit the previous field (AMT)
with a decimal point and a comma (if the value were
1,000.00 or higher) would be as follows:
NAME OPERATION OPERAND
EDMK DC
HSM BEFORE
AND AFTER
EXECUTION
HSM BEFORE
EXECUTION
ASSEMBLY
INSTR UCTION
GENERATED
INSTRUCTION
HSM AFTER
EXECUTION
X'E020206B2020204B202060'
AMT
00 01 02 03
20
00 02 37 8+
EDMK
00 01 02 03 04 05 06 07 08 09 10
-
d
d
,
d
d
d
OPERATION
OPERAND
ED
EDMK (11), AMT
I
DE16
1
10
1
1 10
1
2900 10
1
1 10 [2000 10
1
General Register one contains 0000
EDMK
00 01 02 03 04 05 06 07 08 09 10
-
-
-
-
-
2
3
7 8 -
SIGNIFICANCE
TRIGGER SETTING
o
------>3>1-----~>
0
CONDITION CODE
=
2

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