PURPOSE: To reduce the number of object codes to be formed by storing an arithmetic result of bit row data in the optimum position of a register.
CONSTITUTION: Data A are loaded to the register Gi and AND between the contents of the register Gi and data B of two bytes in the memory 2 is found out. Since the lengths of both the data A, B are 16 bits or less, the data are stored in the 16th bit or after. At the operation of OR between the contents of the register Gi and data C, the contents of the register Gi is shifted left by 16 bits to expand the whole length of the register Gi up to 32 bits because the length of the register Gi is 16 bits and that of the data C is 32 bits, and the OR between the contents of the register Gi and the data C is found out. Consequently, the operated result is 32 bits and the number of instructions is 4. When the data C also are set up as the bit row data of two bytes in the memory 2 while keeping the data A, B as they are, OR between the contents of the register Gi storing the operated result between the data A and B and the data C is found out, so that the operated result is 16 bits and the number of instructions is 3. Thus, the number of object codes can be minimized.
SUEDA KEIJI
SOMAZAWA YOSHIMI
Next Patent: INFORMATION CONTROL SYSTEM RELATED TO CORRECTION OF MASTER PROGRAM