Register  15  contains  00   00   20   00.   Storage  locations  2102-2103   contain  FF  09   =  -39{10}   =  the  multiplier.  
The instruction:
Machine FormatOp   Code   4C   B  E  F  
Assembler FormatOR   MH  11,2(14,15)  
multiplies the two numbers. The
product, FF FF FeCO   =  -819{10},   replaces  the  original  contents  of  regis  
ter 11.Only   the  rightmost  32  bits  of  a  product  
are stored in a register; any signif
icantbits   on  the  left  are  lost.  No  
program interruption occurs on overflow.OR   (0,   OC,   01,   OR)   When  the  Boolean  operator  OR   is  applied  
to twobits,   the  result  is   one  when  either   bit  is  one;  otherwise,  the  result  
is zero. When two bytes areORed,   each  
pair ofbits   is  handled  separately;  
thereis   no  connection  from  one  bit   position  to  another.  The  following  is  
an example of DRing two bytes:
First-operand byte:
Second-operand byte:
Result byte:01   Example  0011   0101{2}   0101   1100{2}   0111   1101{2}   A  frequent  use   of  the  OR   instruction  is  
to set a particular bit to one. For
example, assume that storage location
4891 contains0100   0010{2}.   To  set  the  
rightmost bit of this byte to one with
out affecting the other bits,the   following  instruction  can  be  used  
(assume that register 8 contains00   00   48  90):   Machine  Format  Op   Code   12   96  01   8  
Assembler FormatOp   Code   0,(B,),I  
2 01   1(8),X'01'  
When this instruction is executed, the
byte in storage isORed   with  the   immedi  
ate byte (the12   field  of  the  instruc  
tion):
Location 4891:
Immediate byte:
Result:0100   0010{2}   0000   0001{2}   0100   0011{2}   The  resulting  byte  with  bit  7  set   to  one  
is stored back in location 4891.Condi   tion  code  1  is  set.  PACK   (PACK)   Assume  that  storage  locations  1000-1003   contain  the  following  zoned-decimal  
number that is to be converted to a
packed-decimal number and left in the
same location:1000   1003   Also  assume  that  register  12  contains  00   00   10   00.   After  the  instruction:  
Machine FormatOp   Code   F2  3  3  C   000   I   C   0001   Assembler  Format  PACK   0(4,12),0(4,12)   is  executed,  1000-1003   is  
format:
the result in locations
in the packed-decimal1000   1003   Packed  number  10010112314CI   Appendix  A.  Number  Representation  and  Instruction-Use  Examples  A-25  
The instruction:
Machine Format
Assembler Format
multiplies the two numbers. The
product, FF FF Fe
ter 11.
are stored in a register; any signif
icant
program interruption occurs on overflow.
to two
is zero. When two bytes are
pair of
there
an example of DRing two bytes:
First-operand byte:
Second-operand byte:
Result byte:
to set a particular bit to one. For
example, assume that storage location
4891 contains
rightmost bit of this byte to one with
out affecting the other bits,
(assume that register 8 contains
Assembler Format
2
When this instruction is executed, the
byte in storage is
ate byte (the
tion):
Location 4891:
Immediate byte:
Result:
is stored back in location 4891.
number that is to be converted to a
packed-decimal number and left in the
same location:
Machine Format
format:
the result in locations
in the packed-decimal
 
             
            













































































































































































































































































































































































































































































































































































 
             
             
            