Pattern  Byte  
Digit selector
Significance starter
Field separator
Message byte
Explanation:Conditions   Previous  State   of  
Significance
IndicatorOff   On   Off   On   *   Off   On   Source   Digit  0   1-9  
1-90-9   0-9   0   0   1-9  
1-90-9   0-9   **   **   **   Results  
state of
Significance
Right Four Indicator atSource   Bits  End  of  Digit  
Are PlusCode   Result  Byte  Examination  *   Fill  byte  Off   No  Source   digittt   On   Yes   Source   digittt   Off   No  Source   digit  On   Yes   Source   digit  Off   No  Fill  byte  On   Yes   Fill  byte  Off   No  Source   digittt   On   Yes   Source   digittt   Off   No  Source   digit  On   Yes   Source   digit  Off   **   Fill  byte  Off   **   Fill  byte  Off   **   Message  byte  On   *   No  effect  on  result  byte  or  on  new  state  of  significance  indicator.  **   Not  applicable  because   source  is  not  examined.  tt   For  EDIT  AND  MARK  only,  the  address  of  the  rightmost  such  result  byte  is   placed  in  general  register  1.  
Summary of Editing Functions
EDIT AND MARK
EDMK[SS]   ~'_D_F'   __  ~   __  l~I_B_!~1   ~,   I   s,   I   ~~   o  8  16  20   32  36  47  
The second operand (the source), which
normally contains one or more decimal
numbers in the packed format, is changed
to the zoned format and modified under
the control of the first operand (the
pattern). The address of the first
significant result byte is inserted in
general register 1. The edited result
replaces the pattern.
EDIT AND MARK is identical to EDIT,
except for the additional function of
inserting the address of the result byte
in bit positions 8-31 of general regis
ter 1 if the result byte is a zoned
source digit and the significance indi
cator was off before the examination.
Bits0-7   of  the  register  are  not  
changed. If no result byte meets the
criteria, general register 1 remains
unchanged; if more than one result byte
meets the criteria, the address of the
rightmost such result byte is inserted.See   the  figure  "Summary  of  Editing  Func  
tions" under EDIT for a summary of the
EDIT and EDIT AND MARK operations.
ResultingCondition   Code:   o  
1
2
3
last field zero or zero length
last field less than zero
last field greater than zero
Program Exceptions:
Access (fetch, operand 2; fetch and
store,operand   1)  
Data
Programming Notes
1. Examples of the use of the EDIT AND
MARK instruction aregiven   in   Appendix  A.  
2. EDIT AND MARK facilitates the
programming of floating currency
symbol insertion. Using appropri
ate source and pattern data, the
address inserted in general regis
ter 1 is one greater than the
address where a floating currency
sign would be inserted.BRANCH   ON   COUNT   (BCTR),   with  zero  in  the  R2  Chapter   8.  Decimal  Instructions  8-9  
Digit selector
Significance starter
Field separator
Message byte
Explanation:
Significance
Indicator
1-9
1-9
state of
Significance
Right Four Indicator at
Are Plus
Summary of Editing Functions
EDIT AND MARK
EDMK
The second operand (the source), which
normally contains one or more decimal
numbers in the packed format, is changed
to the zoned format and modified under
the control of the first operand (the
pattern). The address of the first
significant result byte is inserted in
general register 1. The edited result
replaces the pattern.
EDIT AND MARK is identical to EDIT,
except for the additional function of
inserting the address of the result byte
in bit positions 8-31 of general regis
ter 1 if the result byte is a zoned
source digit and the significance indi
cator was off before the examination.
Bits
changed. If no result byte meets the
criteria, general register 1 remains
unchanged; if more than one result byte
meets the criteria, the address of the
rightmost such result byte is inserted.
tions" under EDIT for a summary of the
EDIT and EDIT AND MARK operations.
Resulting
1
2
3
last field zero or zero length
last field less than zero
last field greater than zero
Program Exceptions:
Access (fetch, operand 2; fetch and
store,
Data
Programming Notes
1. Examples of the use of the EDIT AND
MARK instruction are
2. EDIT AND MARK facilitates the
programming of floating currency
symbol insertion. Using appropri
ate source and pattern data, the
address inserted in general regis
ter 1 is one greater than the
address where a floating currency
sign would be inserted.
 
             
            












































































































































































































































































































































































































































































































































































