mains  unchanged,  and  the  instruction  actually  exe-  
uted byEXECUTE   is  Op   Code   B,   0,   B.   D.   I   MvclIT   112  1151   100   100   
move 113 bytes.
Assembly Language Examples
These programming examples use theSystem/360   as  
sembly-language format and mnemonics. In general,
the operands are shown symbolically with indexing or
length specification following the symbol and enclosed
in parentheses. Lengths are given as the total number
of bytes in the field. This differs from the machine
definition regarding lengths which states that the
length is the number of bytes to be added to the field
address to obtain the address of the last byte of the
field. Thus the machine length is one less than the
assembly-language length. The assembly language
automatically subtracts one from the length specified
when the instruction is assembled.
Examples
l. Decimal right shift -even number of places.
Assume symbolic location"Source"   is:  Source:   12  34  56  78  9S   and  we  wish  to  drop  two  places.  MOVE   NUMERICS   (MVN)  can  be  used  to  accomplish  this  Source   MVN  Source   +  3  (1),  Source   +  4  12  34  56  7S   9S   
bohc locatIOnSource,   the  result  is  accomplished.  
2. Decimal right shift -odd number of places.Source:   12  34  56  78  9S   Assume  we  wish  to  drop  three  places.  
The move with offset(MVO)   instmction  is  used.  Source   MVO   Source   (5),  Source   (3)  00   01   23  45  6S   3.  Decimal  left  shift  -even  number  of  places.  
Assume tbe following at symbolic location"ZERO."   Zero:   00   00   Source:   12  34  56  78  9S   A  left  shift  of  four  places  can  be  performed  as  follows:  Source   MVC  Source   +  5  (2),  Zero   12  34  56  78  9S   00   00   MVN  Source   +  6  (1),  Source   +  4  12  34  56  78  9S   00   OS   NI  Source   +  4,240   12  3456  78  90   00   OS   .  Note  the  number  24010   in  the  AND  IMMEDIATE  instmction  pro  
VIdes a mask of11110000   which  is  to  be  used  to  make  the  old  
sign positions zero.
128
4. Decimal left shift -odd number of places.Zero:   00   00   Source:   12  34  56  78  9S   Assume  the  shift  to  be  three  places.  Source   MVC  Souree   +  5  (2),  Zero   MVN  Source   +  6  (1),  Source   +  4  
NISouree   +  4,  240   MVO   Source   (6),  Source   (5)  
12 34 56 789S   00   00   12  34  56  78  9S   00   OS   12  34  56  78  90   00   OS   01   23  45  67  89  00   OS   5.  A  master  inventory  file  is   to  be  updated  by  issue  
and receipt transactions. There may be multiple trans
actions pertaining to a master record. Both inactive
and updated master records are to be rewritten. The
following calculations are performed to update the
master:
Receipts
l. Receipt quantity X unit cost==   receipt  cost  
2. Receipt cost + total cost==   new  total  cost  
3. Receipt quantity + quantity on hand new
quantity
4. New total cost--;-   new  quantity  ==   new  average  
unit cost
Issues
l. Quantity on hand -issue quantity==   new  quantity  
(if quantity on hand is less than issue quantity, go
to an exception routine) .
2. Issue quantity X average unit cost==   issue  cost  
3. Total cost -issue cost==   new  total  cost  
4. If new quantity is not greater than the reorder level,
go to an exception routine.>   Record  Description  NI   aster  Record:  
Item #: 6 alphameric characters
Description:20   alphabetic  characters  
Quantity: 7 digits plus sign
Total cost: 11 digits plus sign (2 decimal places)
Average unit cost: 7 digits plus sign (3 decimal places)
Reorder level: 5 digits plus sign
Transaction Record:
Type code: 1 digit plus sign
(plus 1==   receipt)  
( plus 2==   issue)  
Item #: 6 alphameric characters
Quantity: 5 digits plus sign
Receipt unit cost: 6 digits plus sign (2 decimal places)
uted by
move 113 bytes.
Assembly Language Examples
These programming examples use the
sembly-language format and mnemonics. In general,
the operands are shown symbolically with indexing or
length specification following the symbol and enclosed
in parentheses. Lengths are given as the total number
of bytes in the field. This differs from the machine
definition regarding lengths which states that the
length is the number of bytes to be added to the field
address to obtain the address of the last byte of the
field. Thus the machine length is one less than the
assembly-language length. The assembly language
automatically subtracts one from the length specified
when the instruction is assembled.
Examples
l. Decimal right shift -even number of places.
Assume symbolic location
bohc locatIOn
2. Decimal right shift -odd number of places.
The move with offset
Assume tbe following at symbolic location
VIdes a mask of
sign positions zero.
128
4. Decimal left shift -odd number of places.
NI
12 34 56 78
and receipt transactions. There may be multiple trans
actions pertaining to a master record. Both inactive
and updated master records are to be rewritten. The
following calculations are performed to update the
master:
Receipts
l. Receipt quantity X unit cost
2. Receipt cost + total cost
3. Receipt quantity + quantity on hand new
quantity
4. New total cost
unit cost
Issues
l. Quantity on hand -issue quantity
(if quantity on hand is less than issue quantity, go
to an exception routine) .
2. Issue quantity X average unit cost
3. Total cost -issue cost
4. If new quantity is not greater than the reorder level,
go to an exception routine.
Item #: 6 alphameric characters
Description:
Quantity: 7 digits plus sign
Total cost: 11 digits plus sign (2 decimal places)
Average unit cost: 7 digits plus sign (3 decimal places)
Reorder level: 5 digits plus sign
Transaction Record:
Type code: 1 digit plus sign
(plus 1
( plus 2
Item #: 6 alphameric characters
Quantity: 5 digits plus sign
Receipt unit cost: 6 digits plus sign (2 decimal places)
 
             
            






































































































































































