摘要 |
PURPOSE:To obtain a decimal number key comparing method capable of comparison of decimal number keys successively from the leading byte similarly to binary numbers by displaying the code of the low-order bit of the least significant byte by the high-order bit of the most significant byte as a code, and converting a negative number into its complement to display it. CONSTITUTION:A key number to be compared and retrieved is inputted to a retrieving part 1, which retrieves a file 5 and takes out the corresponding address. The retrieving part 1 discriminates the code of the input key and that of the address to determine the size of the codes and then a comparing part 3 compares the code of the input key with the high-order bit. The comparing part 3 actuates a shifting part 4 in accordance with compared result and the retrieving part 1 retrieves the file 5 by shifting the retrieving position right or left in accordance with the compared size. Said process is repeated to retrieve the corresponding key. |