Edit
and Mark
(EDMK)
General
Description
Format
(55)
Condition Code
Interrupt
Action
Notes
Logical
I nstruct'ions
•
The
variable
length
source field specified by
the
second
address
(BdD
2
)
is changed
from
packed
format
to zoned
format
and
the
results
are
edited
under
control
of
a
mask
pattern.
The
result
of
the
operation
replaces
the
mask
pattern
specified by
the
first
address
(BdD
1
)
and
determines
the
condition code.
In
addition,
the
address
of
each first significant
result
digit
is
stored
in
General
Register
1 (General
Register
13
in
P 3 ; General
Register
9
in
P
4
).
The
operation
of
this
instruction
is identical to
the
Edit
instruction
except
for
the
additional function
of
inserting
a
byte
address
in General
Register
1 (13
or
9).
The destination
address
of
the
digit
that
establishes
significance
within
the
source field being edited is loaded into
the
right-
most
24
bits
of
General
Register
1 (13
or
9).
The
leftmost
eight
bits
are
unaltered. The
address
is
not
loaded when significance is forced by recogni-
tion
of
the
start
significance code
in
the
mask
pattern.
The
Edit
and
Mark
instruction
facilitates
the
insertion
of
floating cur-
rency
symbols,
sign
indicators, relational operators,
and
other
editing
symbols ($,
+,
-,
<,
>,
etc.).
The
address
loaded into
the
register
is one
byte
to
the
right
of
the
address
where
such a symbol would be inserted.
(The
Branch
on Count instruction,
with
zero in
the
R2
field,
can
be used to
reduce
the
loaded
address
by one.)
Because
the
address
is
not
loaded when significance is forced
by
the
start
significance code,
the
address
of
the
byte immediately to
the
right
of
the
start
significance code
in
the
mask
pattern
field should be loaded
in
General
Register
1 (13
or
9) before
an
Edit
and
Mark
instruction
is executed.
DF
L
o 7 8
15 16 19
20
31 32 35 36
47
• 0 - indicates a zero source field
whether
or
not
significance is estab-
lished.
1 - indicates non-zero
result
field
with
significance established to indi-
ciate less
than
zero.
2 - indicates non-zero
result
field
with
no significance established
to
indicate
greater
than
zero.
3-not
used.
• Address
error:
Addressing.
Protection.
Data
error.
• 1. All notes
of
the
Edit
instruction
are
applicable
to
the
Edit
and
Mark
instruction.
2.
The address of
th8
byt8
is
loaded each
time
significance
is
established
and
a non-zero
character
is
inserted
into
the
result
field.
187