Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
METHOD FOR STORING ARITHMETIC RESULT OF BIT ROW DATA IN REGISTER
Document Type and Number:
Japanese Patent JPS61169934
Kind Code:
A
Abstract:

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.


Inventors:
TAKECHI YASUHIDE
SUEDA KEIJI
SOMAZAWA YOSHIMI
Application Number:
JP1011685A
Publication Date:
July 31, 1986
Filing Date:
January 23, 1985
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
NEC CORP
International Classes:
G06F7/00; G06F9/44; G06F9/45; (IPC1-7): G06F7/00; G06F9/44
Attorney, Agent or Firm:
Uchihara Shin