JP3097294B2 - Code conversion device - Google Patents

Code conversion device

Info

Publication number
JP3097294B2
JP3097294B2 JP04090532A JP9053292A JP3097294B2 JP 3097294 B2 JP3097294 B2 JP 3097294B2 JP 04090532 A JP04090532 A JP 04090532A JP 9053292 A JP9053292 A JP 9053292A JP 3097294 B2 JP3097294 B2 JP 3097294B2
Authority
JP
Japan
Prior art keywords
decimal
code
data
register
output
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP04090532A
Other languages
Japanese (ja)
Other versions
JPH05289846A (en
Inventor
一徳 高橋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Corp
Panasonic Holdings Corp
Original Assignee
Panasonic Corp
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Panasonic Corp, Matsushita Electric Industrial Co Ltd filed Critical Panasonic Corp
Priority to JP04090532A priority Critical patent/JP3097294B2/en
Publication of JPH05289846A publication Critical patent/JPH05289846A/en
Application granted granted Critical
Publication of JP3097294B2 publication Critical patent/JP3097294B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は数値演算に伴うコード変
換を行なうコード変換装置に関するものである。コード
変換は内部の数値演算で用いるデータフォーマットをシ
ステムで使用するアスキーコード等のコードデータに変
換する際に必要となる。ユーザインタフェースを含むシ
ステムの場合には比較的多用されるものであり、コード
変換速度はシステム性能に大きな影響を与えるものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a code conversion device for performing a code conversion accompanying a numerical operation. Code conversion is required when converting a data format used for internal numerical operation into code data such as ASCII code used in the system. In the case of a system including a user interface, it is relatively frequently used, and the code conversion speed has a great effect on system performance.

【0002】[0002]

【従来の技術】図6は従来のコード変換装置の構成図を
示すものである。図6において、1は小数を含む2進デ
ータを2進10進変換して10進整数データと10進小
数データを出力する2進10進変換装置、2は2進10
進変換装置1から出力された10進整数データを保持す
る10進整数レジスタ、11は2進10進変換装置1か
ら出力された10進小数データを保持する10進小数レ
ジスタ、7は前記10進整数データと10進小数データ
とに付加すべきコード情報及び小数点コード及び変換後
のコードデータ列の終端を示す完了コードを発生するコ
ード発生装置、6は10進の数値コードを出力する時は
10進整数レジスタ2と10進小数レジスタ11との内
容から出力すべき10進データを選択し、コード発生装
置7から出力されたコード情報を付加してコードデータ
を生成するとともに、小数点コード及び完了コードを出
力する時はコード発生装置7から出力されたコードデー
タをそのまま出力するコードデータ生成装置、20は出
力すべきコードデータのアドレスを保持し、コード発生
装置7やコードデータ生成装置6が変換すべきデータを
指定するアドレスレジスタ、8はコードデータ生成装置
6の出力を保持するデータレジスタである。
2. Description of the Related Art FIG. 6 shows the configuration of a conventional code conversion apparatus. In FIG. 6, reference numeral 1 denotes a binary-decimal conversion device for converting binary data including decimals to binary-decimal data and outputting decimal integer data and decimal decimal data;
A decimal integer register for holding decimal integer data output from the decimal conversion device 1; a numeral 11, a decimal decimal register for holding decimal decimal data output from the binary / decimal conversion device 1; A code generator for generating code information to be added to the integer data and decimal decimal data, a decimal point code, and a completion code indicating the end of the converted code data string. 6 is 10 when outputting a decimal numerical code. Decimal data to be output is selected from the contents of the decimal integer register 2 and the decimal decimal register 11, and the code information output from the code generator 7 is added to generate code data. Is output, the code data generation device outputs the code data output from the code generation device 7 as it is. The addresses of the data, address register code generator 7 and code data generating device 6 specifies the data to be converted, 8 is a data register for holding an output of the code data generator 6.

【0003】以下、図6に従ってその動作を説明する。
小数を含む2進データを2進10進変換装置1により2
進10進変換した結果、8桁の10進整数データ(D7
6 543210)が10進整数レジスタ2に、
8桁の10進小数データ(D-1-2-3-4-5-6
-7-8)が10進小数レジスタ11にそれぞれ保持され
た場合のアスキーコード変換について説明する。ここ
で、Dn(n=7〜-8)はBCD(4bit)、An(n=7〜-8)は
nの上位に'0011'を付加して得られたアスキーコード
(8bit)、’.’は小数点コード(8bit)、’*’は完了コ
ード(8bit)とする。また、10進整数レジスタ2,10
進小数レジスタ11は32ビット、データレジスタ8は
16ビットとし、16ビット(アスキーコード2個)ず
つデータを転送できるものとする。
The operation will be described below with reference to FIG.
Binary data including decimals is converted to binary data by
As a result of the decimal-to-decimal conversion, 8-digit decimal integer data (D7
D6D FiveDFourDThreeDTwoD1D0) In the decimal integer register 2,
8-digit decimal decimal data (D-1D-2D-3D-FourD-FiveD-6D
-7D-8) Are held in the decimal fraction register 11, respectively.
The ASCII code conversion in the case of the above will be described. here
And Dn(N = 7 to -8) is BCD (4bit), An(N = 7-8)
DnASCII code obtained by adding '0011' to the upper part of
(8bit), '. 'Is the decimal point code (8 bits),' * 'is the completion code
Mode (8 bits). Also, decimal integer registers 2, 10
The decimal register 11 is 32 bits, and the data register 8 is
16 bits, without 16 bits (2 ASCII codes)
Data can be transferred.

【0004】コードデータ生成装置6において以下の
(1)〜(4)動作を実行してアスキーコードを出力する。な
お(表1)はアドレスレジスタ20の内容(Adr0〜Adr
8)と、変換すべきデータDn及び小数点コード及び完了
コードとの対応表を示すものである。 (1)以下の(a)(b)の操作をアドレスを変更(Adr0〜Adr
3)しながら実行することで10進整数レジスタ2の内
容がアスキーコード変換されて出力される. (a) アドレスレジスタ20の内容(アドレス)から(表
1)に示すデータを選択. (b) コード発生装置7からの出力'0011'をDnに付加し
てアスキーコードAnを生成し、データレジスタ8に格
納. '0011'Dn'0011'Dn-1 → Ann-1 → データレジ
スタ8 (2)アドレスがAdr4のときは小数点コード’.’をコー
ド発生装置7が出力するとともに、10進小数レジスタ
11からD-1を選択し、前記(b)操作によりD-1からA
-1を生成する. ’.’'0011'D-1 → ’.’A-1 → データレジス
タ8 (3)前記(a)(b)の操作をアドレスを変更(Adr5〜Adr7)
しながら実行することで10進小数レジスタ11の内容
がアスキーコード変換されて出力される. (4)アドレスがAdr8のときは10進小数レジスタ11か
らD-8を選択し前記(b)操作によりD-8からA-8を生成
するとともに、完了コード’*’をコード発生装置7が
出力する. '0011'D-8’*’ → A-8’*’ → データレジス
タ8
In the code data generating device 6, the following
(1)-(4) Execute the operation and output the ASCII code. Table 1 shows the contents of the address register 20 (Adr0 to Adr
8) shows a correspondence table between data D n to be converted, a decimal point code, and a completion code. (1) Change the address for the following operations (a) and (b) (Adr0 to Adr
3) While executing, the contents of the decimal integer register 2 are converted to ASCII code and output. (a) Select the data shown in (Table 1) from the contents (address) of the address register 20. (b) the output from the code generator 7 "0011" is added to D n to generate ASCII code A n, stored in the data register 8. '0011' D n '0011' D n-1An A n-1 → Data register 8 (2) Decimal point code when address is Adr4. 'Is output from the code generator 7 and D -1 is selected from the decimal fraction register 11 and A is converted from D -1 to A by the operation (b).
Generates -1 . '. ''0011'D -1 → '. 'A -1 → Data register 8 (3) Change the address in the operations of (a) and (b) above (Adr5 to Adr7)
The contents of the decimal number register 11 are converted into ASCII codes and output. (4) When the address is Adr8, D- 8 is selected from the decimal decimal register 11 and A- 8 is generated from D- 8 by the operation (b), and the completion code '*' is generated by the code generator 7. Output. '0011' D -8 '*' → A -8 '*' → Data register 8

【0005】[0005]

【表1】 [Table 1]

【0006】以上のようにして18バイトから成るアス
キーコード’A765432 10.A-1-2-3
-4-5-6-7-8*’が生成され、コードデータ生
成装置からデータレジスタ8に16ビット(アスキーコ
ード2個)ずつ出力される。
[0006] As described above, the 18 bytes
Key code 'A7A6AFiveAFourAThreeATwoA 1A0. A-1A-2A-3
A-FourA-FiveA-6A-7A-8* 'Is generated and the code data
16-bit (ASCII)
(Two codes).

【0007】また符号付きのデータを扱う場合には図示
しないが2進10進変換装置1から出力される符号を検
出する符号フラグを設けておき、コード発生装置7にお
いて符号コード’+’または’−’を発生させるように
する。この符号にアドレスを割り当てることにより符号
コードを含む19バイトから成るアスキーコード’±A
76543210.A-1-2-3-4-5-6
-7-8*’を出力することができる。
In the case of handling signed data, a code flag (not shown) for detecting a code output from the binary-decimal conversion device 1 is provided, and the code generation device 7 generates a code code “+” or “+”. -'Is generated. By assigning an address to this code, an ASCII code '± A comprising 19 bytes including the code code
7 A 6 A 5 A 4 A 3 A 2 A 1 A 0 . A -1 A -2 A -3 A -4 A -5 A -6 A
-7 A -8 * 'can be output.

【0008】[0008]

【発明が解決しようとする課題】しかしながら、上記従
来のコード変換装置を用いて2進データをコード変換す
る場合、アドレスレジスタにより10進整数レジスタや
10進小数レジスタから読みだすデータを一意に決めて
しまうので、変換後のコードデータの長さが一定にな
り、常に18バイト(符号付きのデータでは19バイ
ト)のアスキーコードを生成することになる。
However, when binary data is converted using the above-mentioned conventional code conversion apparatus, data read from a decimal integer register or a decimal decimal register is uniquely determined by an address register. Therefore, the length of the converted code data becomes constant, and an ASCII code of 18 bytes (19 bytes for signed data) is always generated.

【0009】このためデータ全部が有効なデータであれ
ば問題ないが、この中に以下に示す無意味なデータ(0
の連続や+の符号)がある場合にも無駄なコード変換処
理をすることになり、必要以上の時間がかかってしま
う。 ・小数がゼロの場合 例)A76543210.00000000* ・整数がゼロの場合 例)0000000.A-1-2-3-4-5-6-7
-8* ・小数の下位桁がゼロの場合 例)A76543210.A-10000000* ・整数の上位桁がゼロの場合 例)0000000A0.A-1-2-3-4-5-6
-7-8* ・符号が正の場合 例)+A76543210.A-1-2-3-4
-5-6-7-8* そこで本発明は、これらの無意味なデータの変換や転送
をなくし、システム性能に大きく影響するコード変換の
処理速度をさらに高速化したコード変換装置を提供する
ことを目的とする。
For this reason, there is no problem if all the data is valid data, but the following meaningless data (0
When there is a continuation of a sign or a + sign), unnecessary code conversion processing is performed, and it takes more time than necessary. -When the decimal number is zero Example: A 7 A 6 A 5 A 4 A 3 A 2 A 1 A 0 . 00000000 *-When the integer is zero Example: 00000000. A -1 A -2 A -3 A -4 A -5 A -6 A -7 A
-8 * • When the lower digit of the decimal is zero Example: A 7 A 6 A 5 A 4 A 3 A 2 A 1 A 0 . A - 100000000 *-When the high-order digit of the integer is zero Example) 000000A 0 . A -1 A -2 A -3 A -4 A -5 A -6 A
-7 A -8 * • When the sign is positive Example) + A 7 A 6 A 5 A 4 A 3 A 2 A 1 A 0 . A -1 A -2 A -3 A -4 A
-5 A -6 A -7 A -8 * Accordingly, the present invention eliminates the conversion and transfer of such meaningless data and provides a code conversion apparatus that further increases the processing speed of code conversion that greatly affects system performance. The purpose is to provide.

【0010】[0010]

【課題を解決するための手段】上記課題を解決するため
に本発明のコード変換装置は、第1に、正負の符号付き
2進データを2進10進変換して正負の符号と複数桁の
10進データを出力する2進10進変換装置と、前記2
進10進変換装置から出力された複数桁の10進データ
を保持する10進レジスタと、前記2進10進変換装置
から出力された符号を保持する符号フラグと、前記符号
フラグを入力してその正負を判定する符号判定装置と、
前記符号判定装置が負の符号を判定した場合のみ符号コ
ードを発生するとともに、前記10進データを他のコー
ドデータに変換する際に各桁の10進データに付加すべ
きコード情報を発生するコード発生装置と、前記符号判
定装置が正の符号を示す場合には、前記コード発生装置
から出力されたコード情報を、10進レジスタから入力
された10進データに対して予め定められた桁数ずつ付
加して生成したコードデータを順次出力し、符号判定装
置が負の符号を示す場合には、前記コード発生装置から
出力された負の符号コードと、前記コード発生装置から
出力されたコード情報を、10進レジスタから入力され
た10進データに対して予め定められた桁数ずつ付加し
て生成したコードデータとを順次出力するコードデータ
生成装置と、前記コードデータ生成装置の出力を保持す
るデータレジスタと、前記コード発生装置に対して符号
コードまたはコード情報の発生を指示するとともに、前
記コードデータ生成装置に対してコードデータの生成と
前記データレジスタへのデータ転送を指示し、かつ前記
コードデータ生成装置から前記データレジスタへの転送
順序を示すデータを保持する順序レジスタとを備えてい
る。
SUMMARY OF THE INVENTION In order to solve the above-mentioned problems, a code conversion apparatus according to the present invention first converts binary data with a plus or minus sign into binary to decimal, and adds a plus or minus sign to a plurality of digits. A binary-decimal conversion device for outputting decimal data;
A decimal register for holding a plurality of digits of decimal data output from the decimal-to-decimal conversion device, a code flag for holding a code output from the binary-to-decimal conversion device, and inputting the code flag. A sign determination device for determining whether the sign is positive or negative;
A code that generates a code code only when the code determination device determines a negative code, and generates code information to be added to each digit of decimal data when the decimal data is converted to other code data. When the generator and the sign determination device indicate a positive code, the code information output from the code generator is divided by a predetermined number of digits with respect to the decimal data input from the decimal register. The code data added and generated is sequentially output, and when the sign determination device indicates a negative sign, the negative sign code output from the code generator and the code information output from the code generator are output. A code data generation device for sequentially outputting code data generated by adding a predetermined number of digits to decimal data input from a decimal register, and A data register for holding the output of the code data generation device, and instructing the code generation device to generate a code code or code information, and generating code data for the code data generation device and transmitting data to the data register. An order register for instructing transfer and holding data indicating an order of transfer from the code data generation device to the data register.

【0011】第2に、小数を含む2進データを2進10
進変換してそれぞれ複数桁の10進整数データと10進
小数データとを出力する2進10進変換装置と、前記2
進10進変換装置から出力された10進整数データを保
持する10進整数レジスタと、前記2進10進変換装置
から出力された10進小数データを保持する10進小数
レジスタと、前記10進小数レジスタの内容が’0’で
あるかどうかを判定する小数ゼロ判定装置と、前記小数
ゼロ判定装置の出力に応じ、前記10進整数データと1
0進小数データのコード変換時に付加すべきコード情報
と、小数点コードとを発生するコード発生装置と、前記
小数ゼロ判定装置が小数のないことを示す場合には、前
記コード発生装置から出力されたコード情報を、10進
整数レジスタから出力された10進整数データに対して
予め定められた桁数ずつ付加して生成したコードデータ
を順次出力し、前記小数ゼロ判定装置が小数のあること
を示す場合には、前記コード発生装置から出力されたコ
ード情報を、10進整数レジスタから入力された10進
整数データに対して予め定められた桁数ずつ付加して生
成したコードデータと、前記コード発生装置から出力さ
れた小数点コードと、前記コード発生装置から出力され
たコード情報を、10進小数レジスタから入力された1
0進小数データに対して予め定められた桁数ずつ付加し
て生成したコードデータとを順次出力するコードデータ
生成装置と、前記コードデータ生成装置の出力を保持す
るデータレジスタと、前記コード発生装置に対してコー
ド情報または小数点コードの発生を指示するとともに、
前記コードデータ生成装置に対してコードデータの生成
と前記データレジスタへのデータ転送を指示し、かつ前
記コードデータ生成装置から前記データレジスタへの転
送順序を示すデータを保持する順序レジスタとを備えて
いる。
Second, binary data including decimal numbers are converted to binary 10
A binary-to-decimal conversion device for performing binary conversion to output decimal integer data and decimal decimal data of a plurality of digits, respectively,
A decimal integer register for holding decimal integer data output from the decimal-decimal conversion device, a decimal decimal register for holding decimal decimal data output from the binary-decimal conversion device, and the decimal decimal A decimal zero judging device for judging whether or not the contents of the register is '0'; and the decimal integer data and 1 according to an output of the decimal zero judging device.
Code information to be added at the time of code conversion of decimal data, a code generator for generating a decimal point code, and when the decimal zero determination device indicates that there is no decimal, the code generator is output from the code generator. Code information is generated by adding a predetermined number of digits to the decimal integer data output from the decimal integer register, and the generated code data is sequentially output to indicate that the decimal zero determination device has a decimal number. In this case, code data generated by adding code information output from the code generator to the decimal integer data input from the decimal integer register by a predetermined number of digits, The decimal point code output from the device and the code information output from the code generator are converted into 1
A code data generation device for sequentially outputting code data generated by adding a predetermined number of digits to a decimal number data, a data register holding an output of the code data generation device, and the code generation device To indicate the generation of code information or decimal point code,
An order register that instructs the code data generation device to generate code data and transfer data to the data register, and that holds data indicating a transfer order from the code data generation device to the data register. I have.

【0012】第3に、小数を含む2進データを2進10
進変換してそれぞれ複数桁の10進整数データと10進
小数データを出力する2進10進変換装置と、前記2進
10進変換装置から出力された10進整数データを保持
する10進整数レジスタと、前記2進10進変換装置か
ら出力された10進小数データを保持する10進小数レ
ジスタと、前記10進整数レジスタの内容が’0’であ
ることを判定する整数ゼロ判定装置と、前記整数ゼロ判
定装置の出力に応じ、前記10進整数データと10進小
数データのコード変換時に付加すべきコード情報と、小
数点コードとを発生するコード発生装置と、前記整数ゼ
ロ判定装置が整数のないことを示す場合には、前記コー
ド発生装置から出力された小数点コードと、前記コード
発生装置から出力されたコード情報を前記10進小数レ
ジスタから出力された10進小数データに対して予め定
められた桁数ずつ付加して生成したコードデータとを順
次出力し、前記整数ゼロ判定装置が整数のあることを示
す場合には、前記コード発生装置から出力されたコード
情報を、10進整数レジスタから入力された10進整数
データに対して予め定められた桁数ずつ付加して生成し
たコードデータと、前記コード発生装置から出力された
小数点コードと、前記コード発生装置から出力されたコ
ード情報を、10進小数レジスタから入力された10進
小数データに対して予め定められた桁数ずつ付加して生
成したコードデータとを順次出力するコードデータ生成
装置と、前記コードデータ生成装置の出力を保持するデ
ータレジスタと、前記コード発生装置に対してコード情
報または小数点コードの発生を指示するとともに、前記
コードデータ生成装置に対してコードデータの生成と前
記データレジスタへのデータ転送を指示し、かつ前記コ
ードデータ生成装置から前記データレジスタへの転送順
序を示すデータを保持する順序レジスタとを備えてい
る。
Third, binary data including decimal numbers are converted to binary 10
A binary-to-decimal conversion device that outputs decimal integer data and decimal decimal data of a plurality of digits by performing decimal conversion, and a decimal integer register that holds the decimal integer data output from the binary-decimal conversion device A decimal decimal register for holding decimal decimal data output from the binary decimal conversion device, an integer zero determination device for determining that the content of the decimal integer register is '0', A code generator for generating code information to be added at the time of code conversion of the decimal integer data and decimal decimal data and a decimal point code according to an output of the integer zero determination device, and the integer zero determination device having no integer. In this case, the decimal point code output from the code generator and the code information output from the code generator are output from the decimal decimal register. Code data generated by adding a predetermined number of digits to decimal decimal data is sequentially output, and when the integer zero determination device indicates that there is an integer, the code data is output from the code generation device. Data generated by adding predetermined number of digits to decimal integer data input from a decimal integer register, the decimal point code output from the code generator, and the code A code data generation device for sequentially outputting code data generated by adding code information output from the generation device to the decimal decimal data input from the decimal decimal register by a predetermined number of digits, and A data register for holding the output of the code data generator, and instructing the code generator to generate code information or a decimal code. And an order register that instructs the code data generation device to generate code data and transfer data to the data register, and that holds data indicating a transfer order from the code data generation device to the data register. Have.

【0013】第4に、2進データを2進10進変換して
複数桁の10進整数データを出力する2進10進変換装
置と、前記2進10進変換装置から出力された10進整
数データを保持する10整数進レジスタと、前記10進
整数レジスタの内容から最上位桁の’0’または最上位
桁から連続する’0’を示すデータを検出する整数ゼロ
検出装置と、前記整数ゼロ検出装置の出力から、10進
整数データの最上位桁から’0’以外のデータがある桁
を指示する最上位桁指示装置と、前記最上位桁指示装置
の出力に応じて、前記10進整数データのコード変換時
に付加すべきコード情報を発生するコード発生装置と、
前記最上位桁指示装置の出力に基づき、前記10進整数
レジスタから入力された10進整数データに対して、最
上位桁の’0’または最上位桁から連続する’0’を示
すデータ以外の変換すべきデータを決定し、それらに前
記コード発生装置から出力されたコード情報を予め定め
られた桁数ずつ付加して生成したコードデータを順次出
力するコードデータ生成装置と、前記コードデータ生成
装置の出力を保持するデータレジスタと、前記コード発
生装置に対してコード情報の発生を指示するとともに、
前記コードデータ生成装置に対してコードデータの生成
と前記データレジスタへのデータ転送を指示し、かつ前
記コードデータ生成装置から前記データレジスタへの転
送順序を示すデータを保持する順序レジスタとを具備す
るコード変換装置。
Fourth, a binary-decimal conversion device for converting binary data into binary-decimal data and outputting a plurality of digits of decimal integer data, and a decimal integer output from the binary-decimal conversion device A decimal integer register for holding data, an integer zero detection device for detecting data indicating “0” of the most significant digit or “0” continuous from the most significant digit from the contents of the decimal integer register; From the output of the detection device, the most significant digit of the decimal integer data, the most significant digit indicating device for designating a digit having data other than '0', and the decimal integer according to the output of the most significant digit indicating device. A code generator for generating code information to be added at the time of data code conversion,
Based on the output of the most significant digit indicating device, for the decimal integer data input from the decimal integer register, data other than data indicating "0" of the most significant digit or "0" continuous from the most significant digit. A code data generating apparatus for determining data to be converted, adding code information output from the code generating apparatus to the data by a predetermined number of digits, and sequentially outputting the generated code data; and A data register for holding the output of, and instructing the code generator to generate code information,
An order register that instructs the code data generation device to generate code data and transfer data to the data register, and retains data indicating a transfer order from the code data generation device to the data register. Code conversion device.

【0014】第5に、小数2進データを2進10進変換
して複数桁の10進小数データを出力する2進10進変
換装置と、前記2進10進変換装置から出力された複数
桁の10進小数データを保持する10進小数レジスタ
と、前記10進小数レジスタの内容から最下位桁の’
0’または最下位桁まで連続する’0’を示すデータを
検出する小数ゼロ検出装置と、前記小数ゼロ検出装置の
出力から10進小数データの最下位側から’0’以外の
データがある桁を指示する最下位桁指示装置と、前記最
下位桁指示装置の出力に応じて、小数点コードまたは前
記10進小数データのコード変換時に付加すべきコード
情報を発生するコード発生装置と、前記コード発生装置
から出力された小数点コードと、前記最下位桁指示装置
の出力に基づき、前記10進小数レジスタから入力され
た10進小数データに対して、最下位桁の’0’または
最下位桁まで連続する’0’を示すデータ以外の変換す
べきデータを決定し、それらに前記コード発生装置から
出力されたコード情報を予め定められた桁数ずつ付加し
て生成したコードデータとを順次出力するコードデータ
生成装置と、前記コードデータ生成装置の出力を保持す
るデータレジスタと、前記コード発生装置に対してコー
ド情報の発生を指示するとともに、前記コードデータ生
成装置に対してコードデータの生成と前記データレジス
タへのデータ転送を指示し、かつ前記コードデータ生成
装置から前記データレジスタへの転送順序を示すデータ
を保持する順序レジスタとを備えている。
Fifth, a binary-decimal conversion device for converting decimal binary data into binary-decimal data to output a plurality of decimal data, and a plurality of digits output from the binary-decimal conversion device And a decimal point register holding the decimal point data of the decimal point.
A decimal zero detecting device for detecting data indicating "0" or continuous "0" to the least significant digit; and a digit having data other than "0" from the least significant digit of the decimal decimal data from the output of the decimal zero detecting device. A code generator for generating a decimal point code or code information to be added at the time of code conversion of the decimal data according to an output of the least significant digit indicator; Based on the decimal point code output from the device and the output of the least significant digit indicating device, the decimal decimal data input from the decimal decimal register is continuously up to the least significant digit '0' or the least significant digit. The data to be converted other than the data indicating '0' to be converted is determined, and the code information output from the code generator is added thereto by a predetermined number of digits, and the generated code data is sequentially processed. A code data generating device for outputting, a data register for holding an output of the code data generating device, and an instruction for generating code information to the code generating device, and generating code data to the code data generating device. And an order register for instructing data transfer to the data register and holding data indicating an order of transfer from the code data generation device to the data register.

【0015】[0015]

【作用】本発明のコード変換装置は、コード変換するデ
ータをアドレスを指定することにより10進整数レジス
タや10進小数レジスタから読みだすデータを一意に決
めるのではなく、10進整数レジスタや10進小数レジ
スタからの任意のデータをコード変換して転送できるよ
うにしてある。このため特に上記第1の構成により、符
号が正の場合の符号コード変換を省略することができ
る。また第2の構成により、小数がゼロの場合の小数点
及び小数部のコード変換を省略することができる。また
第3の構成により、整数がゼロの場合の整数部のコード
変換を省略することができる。また第4の構成により、
整数の上位桁がゼロの場合の整数部上位桁のコード変換
を省略することができる。また第5の構成により、小数
の下位桁がゼロの場合の小数部下位桁のコード変換を省
略することができる。
The code conversion apparatus of the present invention does not uniquely determine data to be read from a decimal integer register or a decimal decimal register by designating an address of data to be code-converted. Arbitrary data from the decimal register can be converted and transferred. Therefore, in particular, with the first configuration, it is possible to omit the code code conversion when the code is positive. Further, according to the second configuration, the code conversion of the decimal point and the decimal part when the decimal number is zero can be omitted. Further, with the third configuration, it is possible to omit the code conversion of the integer part when the integer is zero. Further, according to the fourth configuration,
When the upper digit of the integer is zero, the code conversion of the upper digit of the integer part can be omitted. Further, with the fifth configuration, it is possible to omit the code conversion of the decimal part lower digit when the lower digit of the decimal part is zero.

【0016】[0016]

【実施例】【Example】

(実施例1)図1は本発明の第1の実施例におけるコー
ド変換装置の構成図を示すものである。図1において、
1は符号付き2進データを2進10進変換して符号と1
0進データを出力する2進10進変換装置、2は2進1
0進変換装置1から出力された10進数を保持する10
進整数レジスタ、3は2進10進変換装置1から出力さ
れた符号を保持する符号フラグ、4は符号フラグ3を入
力してその符号を判定する符号判定装置、7は符号判定
装置4の出力をうけ前記10進データのコード変換時に
付加すべきコード情報や、変換後のデータ列の終端に付
加する完了コードや、負の符号コードを発生するコード
発生装置、6は符号判定装置4の出力から変換すべきコ
ードを決定し、数値コードを変換する時は、10進整数
レジスタ2の内容からコード変換する10進データを選
択し、コード発生装置7から出力されたコード情報を付
加してコードデータを生成し、負の符号コード及び完了
コードを変換する時は、コード変換装置7から出力され
たコードデータをそのまま出力するコードデータ生成装
置、8はコードデータ生成装置6の出力を保持するデー
タレジスタ、5はコード発生装置7とコード生成装置6
にコード変換の指示を与えるとともに、コードデータ生
成装置6によって生成されたコードデータをデータレジ
スタ8へ転送するときの転送順序を示すデータを保持す
る順序レジスタである。
(Embodiment 1) FIG. 1 shows a configuration diagram of a code conversion apparatus according to a first embodiment of the present invention. In FIG.
1 is a binary-decimal conversion of signed binary data,
Binary-to-decimal conversion device that outputs 0-ary data, 2 is binary 1
10 holding the decimal number output from the 0-base conversion device 1
A decimal integer register, 3 is a code flag for holding the code output from the binary-decimal conversion device 1, 4 is a code determination device that receives the code flag 3 and determines the code, and 7 is an output of the code determination device 4. A code generator for generating code information to be added at the time of code conversion of the decimal data, a completion code to be added to the end of the converted data sequence, and a negative code code; When the code to be converted is determined from the data, the decimal data to be converted is selected from the contents of the decimal integer register 2 and the code information output from the code generator 7 is added. When generating data and converting the negative code and the completion code, the code data generator which outputs the code data output from the code converter 7 as it is. Data register for holding an output of the motor generator 6, 5 the code generator 7 and the code generating unit 6
Is an order register that gives a code conversion instruction to the data register 8 and holds data indicating the transfer order when the code data generated by the code data generating device 6 is transferred to the data register 8.

【0017】以下、図1に従ってその動作を説明する。
本実施例のコード変換装置は正負の符号付き10進デー
タをアスキーコード変換するものであり、正の符号が付
いている場合には符号コード変換を省略するものであ
る。例えば、2進10進8桁の整数データのアスキーコ
ード(An:n桁の数値を示すアスキーコード)変換で
は、符号が負の時は’−A76543210’、
符号が正の時は’A76543210’を出力す
る。
The operation will be described below with reference to FIG.
The code conversion apparatus according to the present embodiment converts decimal data with positive and negative signs into ASCII codes, and omits code code conversion when a positive code is added. For example, in ASCII code conversion of binary 8-digit integer data (A n : an ASCII code indicating an n-digit number), when the sign is negative, '-A 7 A 6 A 5 A 4 A 3 A 2. A 1 A 0 ',
Sign when positive outputs 'A 7 A 6 A 5 A 4 A 3 A 2 A 1 A 0'.

【0018】符号を含む2進データを2進10進変換装
置1により2進10進変換した結果、2進データのMS
B(符号ビット)が符号フラグ3に、8桁の10進整数
データ(D76543210)が10進整数レジ
スタ2にそれぞれ保持された場合のアスキーコード変換
について説明する。ここで、Dn(n=7〜0)はBCD(4b
it)、An(n=7〜0)はDnの上位に'0011'を付加して得
られたアスキーコード(8bit)、’−’は負の符号コード
(8bit)、’*’は完了コード(8bit)とする。また、10
進整数レジスタ2は32ビット、データレジスタ8は1
6ビットとし、コード生成装置6からデータレジスタ8
には16ビット(アスキーコード2個)ずつデータが転
送でき、その転送順序を示すデータは図示しないCPU
から順序レジスタ5にアドレスバスの一部を使用して送
られるものとする。
As a result of binary-to-decimal conversion of binary data including a code by the binary-to-decimal conversion device 1, the binary data MS
ASCII when B (sign bit) is held in the sign flag 3 and 8-digit decimal integer data (D 7 D 6 D 5 D 4 D 3 D 2 D 1 D 0 ) is held in the decimal integer register 2 The code conversion will be described. Here, D n (n = 7 to 0) is BCD (4b
it) and A n (n = 7 to 0) are ASCII codes (8 bits) obtained by adding “0011” to the upper part of D n , and “−” is a negative code
(8bit), '*' is the completion code (8bit). Also, 10
Hexadecimal integer register 2 is 32 bits, data register 8 is 1
6 bits, from the code generator 6 to the data register 8
Can transfer data of 16 bits (two ASCII codes) at a time.
To the order register 5 using a part of the address bus.

【0019】(表2)は符号が正の場合と符号が負の場
合において、コード生成装置6によりコード変換したア
スキーコードをデータレジスタ8に転送するときの順序
レジスタ5の内容と転送するコードデータとの対応表を
示すものである。
Table 2 shows the contents of the order register 5 and the code data to be transferred when the ASCII code converted by the code generator 6 is transferred to the data register 8 when the sign is positive and when the sign is negative. FIG.

【0020】[0020]

【表2】 [Table 2]

【0021】CPUが順序レジスタ5に転送順序を指定
すると、符号判定装置4、コード発生装置5、コードデ
ータ生成装置6は順序レジスタ5の内容に従って以下に
示す動作を行い、(表2)に示すコードデータの生成を
実行し、生成したコードデータをデータレジスタ8に転
送する。()内は順序レジスタ5の内容を示す。 (1) 符号フラグ3の内容を符号判定装置4が判定. ・符号が負の場合 コード生成装置6はコード発生装置7に対して負の符号
コード’−’を出力するように要求するとともに、コー
ド発生装置7からの出力'0011'をD7に付加してアスキ
ーコードA7を生成して、データレジスタ8に格納. ’−’'0011'D7 → ’−’A7 → データレジスタ
8 ・符号が正の場合 コード発生装置7からの出力'0011'をD76に付加して
アスキーコードA76を生成し、データレジスタ8に格
納. '0011'D7'0011'D6 → A76 → データレジスタ
8 (2〜4) コード発生装置7は'0011'を出力し、コード生
成装置6は10進整数レジスタ2からの出力Dnを選択
し、'0011'を付加してアスキーコードAnを2桁ずつ生
成し、データレジスタ8に格納. ・(1)で符号が負の場合 …A65,A43,A21を生
成して転送 ・(1)で符号が正の場合 …A54,A32,A10を生
成して転送 '0011'Dn'0011'Dn-1 → Ann-1 → データレジ
スタ8 (5) 最下位桁の処理及びコード発生装置7から完了コー
ド’*’の出力. ・(1)で符号が負の場合 '0011'D0’*’→ A0’*’ → データレジスタ8 ・(1)で符号が正の場合 ’*’ → データレジスタ8 順序レジスタの内容に応じて上記(1)〜(5)の動作を行な
うことにより、コード変換を実行してアスキーコードを
出力することができ、特に正の符号の場合には不必要な
正の符号のコード変換を省略することができる。またア
スキーコードを読み出すCPUは、転送順序を指定する
だけで符号は意識することなく、アスキーコードの先頭
から順にコードデータを得ることができる。
When the CPU designates the transfer order in the order register 5, the code judging device 4, the code generating device 5, and the code data generating device 6 perform the following operations in accordance with the contents of the order register 5, as shown in Table 2. The code data is generated, and the generated code data is transferred to the data register 8. () Shows the contents of the order register 5. (1) The sign judgment device 4 judges the contents of the sign flag 3. - sign is negative if the code generator 6 is negative sign code to the code generator 7 '-' with requests to output adds the output "0011" from the code generator 7 to D 7 To generate an ASCII code A 7 and store it in the data register 8. '-'0011' D 7 → '-' A 7 → Data register 8 ・ If the sign is positive The output '0011' from the code generator 7 is added to D 7 D 6 and the ASCII code A 7 A 6 is added. Generated and stored in data register 8. '0011' D 7 '0011' D 6 → A 7 A 6 → Data register 8 (2-4) The code generator 7 outputs '0011', and the code generator 6 outputs D from the decimal integer register 2. n is selected, '0011' is added, and the ASCII code An is generated two digits at a time and stored in the data register 8. - (1) if the sign is negative ... A 6 A 5, A 4 A 3, A 2 when the sign by A 1 generates and transfer and (1) is positive ... A 5 A 4, A 3 A 2 , A 1 A 0 to generate and transfer '0011' D n '0011' D n-1 → A n A n-1 → data register 8 (5) Processing of least significant digit and completion code from code generator 7 * 'Output.・ If the sign is negative in (1) '0011' D 0 '*' → A 0 '*' → Data register 8 ・ If the sign is positive in (1) '*' → Data register 8 By performing the above operations (1) to (5) accordingly, code conversion can be performed and an ASCII code can be output.In particular, in the case of a positive code, unnecessary code conversion of a positive code is performed. Can be omitted. Further, the CPU that reads the ASCII code can obtain the code data in order from the head of the ASCII code only by designating the transfer order and without being aware of the code.

【0022】本実施例の場合は8桁の数値であったため
符号の正負に関係なく5回の転送が必要となったが、桁
数が奇数となる数値の場合は正の符号の場合には転送回
数は1回少なくなる。例えば、7桁の数値の場合は、負
の符号のとき5回、正の符号のとき4回となる。即ち、
符号付きのコード変換において、正の符号を有するデー
タのコード変換は高速に実行することができる。
In the case of this embodiment, since the number is an eight-digit number, five transfers are required regardless of the sign of the sign. However, if the number is an odd number, the sign is a positive sign. The number of transfers is reduced by one. For example, in the case of a seven-digit numerical value, the number is five for a negative sign and four for a positive sign. That is,
In signed code conversion, code conversion of data having a positive sign can be executed at high speed.

【0023】以上のように、本実施例によれば、2進デ
ータの符号を判定してデータの転送順序をアスキーコー
ドデータの読み出しと同時に転送することで、従来のコ
ード変換装置で問題となっていた符号が正である場合の
不必要な符号コード変換を省略することができるため、
符号を含む2進データのコード変換を高速に実行するこ
とができる。
As described above, according to the present embodiment, the code of the binary data is determined and the data transfer order is transferred simultaneously with the reading of the ASCII code data. Unnecessary code code conversion when the code that was used is positive can be omitted,
Code conversion of binary data including a code can be performed at high speed.

【0024】(実施例2)図2は本発明の第2の実施例
におけるコード変換装置の構成図を示すものである。図
2において、1は小数を含む2進データを2進10進変
換して10進整数データと10進小数データを出力する
2進10進変換装置、11は2進10進変換装置1から
出力された10進小数データを保持する10進小数レジ
スタ、2は2進10進変換装置1から出力された10進
整数データを保持する10進整数レジスタ、9は10進
小数レジスタ11の内容が’0’であることを判定する
小数ゼロ判定装置、7は小数ゼロ判定装置9の出力をう
け前記10進データのコード変換時に付加すべきコード
情報や、変換後のデータ列の終端に付加する完了コード
や、負の符号コードを発生するコード発生装置、6は小
数ゼロ判定装置9の出力から変換すべきコードを決定
し、数値コードを変換する時は10進整数レジスタ2と
10進小数レジスタ11の内容からコード変換する10
進データを選択しコード発生装置7から出力されたコー
ド情報を前記10進データに付加してコードデータを生
成し、小数点コード及び完了コードを変換する時はコー
ド発生装置7から出力されたコードデータをそのまま出
力するコードデータ生成装置、8はコードデータ生成装
置6の出力を保持するデータレジスタ、5はコード発生
装置7とコード生成装置6にコード変換の指示を与える
とともに、コードデータ生成装置6によって生成された
コードデータをデータレジスタ8へ転送するときの転送
順序を示すデータを保持する順序レジスタである。
(Embodiment 2) FIG. 2 shows a block diagram of a code conversion apparatus according to a second embodiment of the present invention. In FIG. 2, reference numeral 1 denotes a binary-decimal conversion device for converting binary data including decimals to binary-decimal data and outputting decimal integer data and decimal decimal data, and 11 denotes an output from the binary-decimal conversion device 1. Decimal decimal register holding the obtained decimal decimal data, 2 is a decimal integer register holding the decimal integer data output from the binary-decimal conversion device 1, and 9 is a decimal decimal register 11 whose contents are ' A decimal zero determination device 7 for determining 0 'is received. The output of the decimal zero determination device 9 is applied to code information to be added at the time of code conversion of the decimal data and completion of addition to the end of the converted data string. A code generator 6 for generating a code or a negative sign code determines a code to be converted from the output of the decimal zero judging device 9 and converts a numerical code into a decimal integer register 2 and a decimal decimal register. 10 for code conversion from 1 of contents
When the decimal data is selected, the code information output from the code generator 7 is added to the decimal data to generate code data, and the decimal point code and the completion code are converted, the code data output from the code generator 7 is used. , A data register for holding the output of the code data generator 6, a code register 5 for giving an instruction for code conversion to the code generator 7 and the code generator 6, and a code register 8. This is an order register that holds data indicating the transfer order when transferring the generated code data to the data register 8.

【0025】以下、図2に従ってその動作を説明する。
本実施例は小数を含む2進データをアスキーコード変換
するものであり、小数部がゼロの場合には、小数点及び
小数部のコード変換を省略するものである。例えば、1
0進8桁の整数部と10進8桁の小数部を含む2進デー
タのアスキーコード変換では、小数が有る時は’A76
543210.A-1-2-3-4-5-6-7
-8’、小数が無い時は’A76543210’を
出力する。
The operation will be described below with reference to FIG.
In the present embodiment, binary data including decimals is converted into ASCII code. When the decimal part is zero, code conversion of the decimal point and the decimal part is omitted. For example, 1
In ASCII code conversion of binary data including an 8-digit integer part and a decimal 8-digit decimal part, if there is a decimal number, 'A 7 A 6
A 5 A 4 A 3 A 2 A 1 A 0. A -1 A -2 A -3 A -4 A -5 A -6 A -7 A
8 ', when the decimal is not' outputs the A 7 A 6 A 5 A 4 A 3 A 2 A 1 A 0 '.

【0026】小数を含む2進データを2進10進変換装
置1により2進10進変換した結果、8桁の10進整数
データ(D76543210)が10進整数レジ
スタ2に、8桁の10進小数データ(D-1-2-3-4
-5-6-7-8)が10進小数レジスタ11にそれぞ
れ保持された場合のアスキーコード変換について説明す
る。ここで、Dn(n=7〜-8)はBCD(4bit)、An(n=7
〜-8)はDnの上位に'0011'を付加して得られたアスキ
ーコード(8bit)、’.’は小数点コード(8bit)、’*’
は完了コード(8bit)とする。また、10進整数レジスタ
2,10進小数レジスタ11は32ビット、データレジ
スタ8は16ビットとし、コード生成装置6からデータ
レジスタ8には16ビット(アスキーコード2個)ずつ
データが転送でき、その転送順序を示すデータは図示し
ないCPUから順序レジスタ5にアドレスバスの一部を
使用して転送するものとする。
[0026] The binary data including decimal binary decimal converter 1 by binary-decimal conversion result, 8-digit decimal integer data (D 7 D 6 D 5 D 4 D 3 D 2 D 1 D 0 ) Is stored in the decimal integer register 2 as 8-digit decimal decimal data (D -1 D -2 D -3 D -4).
D -5 D -6 D -7 D -8 ) will be described ASCII code conversion when held respectively in decimal fraction register 11. Here, D n (n = 7 to -8) is BCD (4 bits), A n (n = 7
To -8) are ASCII codes (8 bits) obtained by adding '0011' to the upper part of D n , '. 'Is decimal point code (8bit),' * '
Is the completion code (8 bits). The decimal integer register 2 and the decimal decimal register 11 have 32 bits, and the data register 8 has 16 bits. Data can be transferred from the code generator 6 to the data register 8 by 16 bits (two ASCII codes). It is assumed that data indicating the transfer order is transferred from a CPU (not shown) to the order register 5 using a part of the address bus.

【0027】(表3)は小数がある場合と無い場合にお
いて、コード生成装置6によりコード変換したアスキー
コードをデータレジスタ8に転送するときの順序レジス
タ5の内容と転送するコードデータとの対応表を示すも
のである。(表3)において、’…’はコード変換を実
行しないことを示す。
Table 3 shows a correspondence table between the contents of the order register 5 and the code data to be transferred when the ASCII code converted by the code generator 6 is transferred to the data register 8 when there is a decimal number and when there is no decimal number. It shows. In Table 3, '...' indicates that code conversion is not performed.

【0028】[0028]

【表3】 [Table 3]

【0029】CPUが順序レジスタ5に転送順序を指定
すると、小数ゼロ判定装置4、コード発生装置5、コー
ドデータ生成装置6は順序レジスタ5の内容に従って以
下に示す動作を行い、(表3)に示すコードデータの生
成を実行し、生成したコードデータをデータレジスタ8
に転送する。()内は順序レジスタ5の内容を示す。 (1〜4) コード生成装置6は、コード発生装置7から出
力された'0011'をDn(n=7〜0)に付加してアスキーコー
ドAnを2桁ずつ生成し、データレジスタ8に格納. '0011'Dn'0011'Dn-1 → Ann-1 → データレジ
スタ8 (5) 小数ゼロ判定装置9が10進小数レジスタ11の内
容を判定. ・小数がゼロの場合 コード発生装置7に対して完了コード’*’を出力する
ように要求して、完了コードをデータレジスタ8に格納
してコード変換を終了する. ’*’→ データレジスタ8 ・小数が有る場合 コード発生装置7に対して小数点コード’.’を出力す
るように要求するとともに、コード発生装置7からの出
力'0011'をD-1に付加してアスキーコードA-1を生成
し、データレジスタ8に格納. ’.’'0011'D-1 → ’.’A-1 → データレジス
タ8 (6〜8) コード発生装置7からの出力'0011'をDn(n=-2
〜-7)に付加してアスキーコードAnを2桁ずつ生成し、
データレジスタ8に格納. '0011'Dn'0011'Dn-1 → Ann-1 → データレジ
スタ8 (9) 最下位桁の処理及びコード発生装置7から完了コー
ド’*’の出力. '0011'D-8’*’→ A-8’*’ → データレジスタ
8 (1)〜(9)の動作によりコード変換を実行してアスキーコ
ードを転送することができ、特に小数が無いときには
(1)〜(5)で変換動作が終了する。すなわち本実施例で
は、小数が有る場合は9回の転送、小数が無い場合は5
回の転送でコード変換が終了する。したがって小数を含
むデータのコード変換において、小数がゼロの場合の小
数のコード変換を省略するため、小数を含むデータのコ
ード変換は高速に実行することができる。また変換後の
アスキーコードを読み出すCPUは、転送順序を指定す
るだけで小数の有無は意識することなく、アスキーコー
ドの先頭から順にコードデータを得ることができる。
When the CPU designates the transfer order in the order register 5, the decimal zero judging device 4, the code generating device 5, and the code data generating device 6 perform the following operations according to the contents of the order register 5, and The generated code data is generated, and the generated code data is stored in the data register 8.
Transfer to () Shows the contents of the order register 5. (1-4) The code generation device 6 adds '0011' output from the code generation device 7 to D n (n = 7-0) to generate an ASCII code An two digits at a time, and the data register 8 Stored in. '0011' D n '0011' D n-1An A n-1 → Data register 8 (5) Decimal zero determination unit 9 determines the contents of decimal decimal register 11. If the decimal number is zero: Request the code generator 7 to output a completion code '*', store the completion code in the data register 8, and end the code conversion. '*' → Data register 8 ・ If there is a decimal number Decimal code for the code generator 7. 'With requests to output the output from the code generator 7' 0011 'generates the ASCII code A -1 in addition to D -1, stored in the data register 8. '. ''0011'D -1 → '. 'A -1 → Data register 8 (6 to 8) Output' 0011 'from code generator 7 to D n (n = -2
To -7) to generate the ASCII code An two digits at a time,
Stored in data register 8. '0011' D n '0011' D n-1 → A n An n-1 → Data register 8 (9) Processing of least significant digit and output of completion code '*' from code generator 7. '0011' D -8 '*' → A -8 '*' → Data register 8 The code conversion can be executed and the ASCII code can be transferred by the operation of (1) to (9).
The conversion operation ends in (1) to (5). That is, in this embodiment, the transfer is performed 9 times when there is a decimal number, and 5 when there is no decimal number.
The code conversion ends with the transfer of the number of times. Therefore, in code conversion of data including decimal numbers, code conversion of decimal numbers when the decimal number is zero is omitted, so that code conversion of data including decimal numbers can be executed at high speed. Further, the CPU that reads the converted ASCII code can obtain the code data in order from the beginning of the ASCII code simply by designating the transfer order and without being aware of the presence or absence of decimal numbers.

【0030】以上のように、本実施例によれば、小数が
ゼロであるかどうかを判定してデータの転送順序をアス
キーコードデータの読み出しと同時に転送することで、
従来のコード変換装置で問題となっていた小数がゼロの
場合の不必要な小数コード変換を省略することができる
ため、小数を含む2進データのコード変換を高速に実行
することができる。
As described above, according to the present embodiment, it is determined whether the decimal number is zero and the data transfer order is transferred simultaneously with the reading of the ASCII code data.
Unnecessary decimal code conversion when the decimal number is zero, which has been a problem in the conventional code conversion apparatus, can be omitted, so that code conversion of binary data including decimal numbers can be executed at high speed.

【0031】(実施例3)図3は本発明の第3の実施例
におけるコード変換装置の構成図を示すものである。図
3において、1は小数を含む2進データを2進10進変
換して10進整数データと10進小数データを出力する
2進10進変換装置、11は2進10進変換装置1から
出力された10進小数データを保持する10進小数レジ
スタ、2は2進10進変換装置1から出力された10進
整数データを保持する10進整数レジスタ、12は10
進整数レジスタ2の内容が’0’であることを判定する
整数ゼロ判定装置、7は整数ゼロ判定装置12の出力か
ら前記10進データのコード変換時に付加すべきコード
情報と完了コード及び小数点コードを発生するコード発
生装置、6は整数ゼロ判定装置12の出力から変換すべ
きコードを決定し、数値コードを変換する時は10進整
数レジスタ2と10進小数レジスタ11の内容からコー
ド変換する10進データを選択しコード発生装置7から
出力されたコード情報を前記10進データに付加してコ
ードデータを生成し、小数点コード及び完了コードを変
換する時はコード発生装置7から出力されたコードデー
タをそのまま出力するコードデータ生成装置、8はコー
ドデータ生成装置6の出力を保持するデータレジスタ、
5はコード発生装置7とコード生成装置6にコード変換
の指示を与えるとともに、コードデータ生成装置6によ
って生成されたコードデータをデータレジスタ8へ転送
するときの転送順序を示すデータを保持する順序レジス
タである。
(Embodiment 3) FIG. 3 shows a block diagram of a code converter according to a third embodiment of the present invention. In FIG. 3, reference numeral 1 denotes a binary-to-decimal conversion device for converting binary data including decimals to binary-decimal data and outputting decimal integer data and decimal-decimal data, and 11 denotes an output from the binary-decimal conversion device 1. Decimal point register for holding the obtained decimal point data, 2 is a decimal integer register for holding the decimal integer data output from the binary-to-decimal converter 1, and 12 is 10
An integer zero determination device for determining that the contents of the decimal integer register 2 is '0'; 7 is code information to be added when the code of the decimal data is converted from the output of the integer zero determination device 12; a completion code; The code generator 6 determines the code to be converted from the output of the integer zero judging device 12 and, when converting the numerical code, converts the code from the contents of the decimal integer register 2 and the decimal decimal register 11. When the decimal data is selected, the code information output from the code generator 7 is added to the decimal data to generate code data, and the decimal point code and the completion code are converted, the code data output from the code generator 7 is used. A data register for holding the output of the code data generator 6,
Reference numeral 5 denotes an order register that gives a code conversion instruction to the code generator 7 and the code generator 6 and holds data indicating a transfer order when the code data generated by the code data generator 6 is transferred to the data register 8. It is.

【0032】以下、図3に従ってその動作を説明する。
本実施例は小数を含む2進データをアスキーコード変換
するものであり、整数部がゼロの場合には、整数部のコ
ード変換を省略するものである。例えば、10進8桁の
整数部と10進8桁の小数部を含む2進データのアスキ
ーコード変換では、整数が有る時は’A7654 3
210.A-1-2-3-4-5-6-7-8’、整
数が無い時は’.A-1 -2-3-4-5-6-7-8
を出力する。
The operation will be described below with reference to FIG.
This embodiment converts binary data including decimals to ASCII code.
If the integer part is zero, the integer part
The code conversion is omitted. For example, a decimal 8 digit
ASCII of binary data including integer part and decimal part of 8 digits
In code conversion, if there is an integer, 'A7A6AFiveAFourA Three
ATwoA1A0. A-1A-2A-3A-FourA-FiveA-6A-7A-8
When there are no numbers, '. A-1A -2A-3A-FourA-FiveA-6A-7A-8
Is output.

【0033】小数を含む2進データを2進10進変換装
置1により2進10進変換した結果、8桁の10進整数
データ(D76543210)が10進整数レジ
スタ2に、8桁の10進小数データ(D-1-2-3-4
-5-6-7-8)が10進小数レジスタ11にそれぞ
れ保持された場合のアスキーコード変換について説明す
る。ここで、Dn(n=7〜-8)はBCD(4bit)、An(n=7
〜-8)はDnの上位に'0011'を付加して得られたアスキ
ーコード(8bit)、’.’は小数点コード(8bit)、’*’
は完了コード(8bit)とする。また、10進整数レジスタ
2,10進小数レジスタ11は32ビット、データレジ
スタ8は16ビットとし、コード生成装置6からデータ
レジスタ8には16ビット(アスキーコード2個)ずつ
データが転送でき、転送順序はアドレスバスの一部を使
用して転送するものとする。
[0033] The binary data including decimal binary decimal converter 1 by binary-decimal conversion result, 8-digit decimal integer data (D 7 D 6 D 5 D 4 D 3 D 2 D 1 D 0 ) Is stored in the decimal integer register 2 as 8-digit decimal decimal data (D -1 D -2 D -3 D -4).
D -5 D -6 D -7 D -8 ) will be described ASCII code conversion when held respectively in decimal fraction register 11. Here, D n (n = 7 to -8) is BCD (4 bits), A n (n = 7
To -8) are ASCII codes (8 bits) obtained by adding '0011' to the upper part of D n , '. 'Is decimal point code (8bit),' * '
Is the completion code (8 bits). The decimal integer register 2 and the decimal decimal register 11 are 32 bits, and the data register 8 is 16 bits. Data can be transferred from the code generator 6 to the data register 8 by 16 bits (two ASCII codes). The order is to be transferred using a part of the address bus.

【0034】(表4)は整数がある場合と無い場合にお
いて、コード生成装置6によりコード変換したアスキー
コードをデータレジスタ8に転送するときの順序レジス
タ5の内容と転送するコードデータとの対応表を示すも
のである。(表4)において、’…’はコード変換を実
行しないことを示す。
Table 4 shows a correspondence table between the contents of the order register 5 and the code data to be transferred when the ASCII code converted by the code generator 6 is transferred to the data register 8 when there is an integer and when there is no integer. It shows. In Table 4, '...' indicates that code conversion is not performed.

【0035】[0035]

【表4】 [Table 4]

【0036】CPUが順序レジスタ5に転送順序を指定
すると、整数ゼロ判定装置12、コード発生装置5、コ
ードデータ生成装置6は順序レジスタ5の内容に従って
以下に示す動作を行い、(表4)に示すコードデータの
生成を実行し、生成したコードデータをデータレジスタ
8に転送する。()内は順序レジスタ5の内容を示す。に
説明する。()内は順序レジスタ5の内容を示す。 (1) 整数ゼロ判定装置12が10進整数レジスタ2の内
容を判定. ・整数が無い場合 コード生成装置6はコード発生装置7に対して小数点コ
ード’.’を出力するように要求するとともに、コード
発生装置7からの出力'0011'をD-1に付加してアスキー
コードA-1を生成し、データレジスタ8に格納 ’.’'0011'D-1 → ’.’A-1 → データレジス
タ8 ・整数が有る場合 コード発生装置7からの出力'0011'をDn(n=7〜6)に付
加してアスキーコードAnを生成し、データレジスタ8
に格納 '0011'D7'0011'D6 → A76 → データレジスタ
8 (2〜4) コード発生装置7からの出力'0011'をDnに付加
してアスキーコードAnを2桁ずつ生成し、データレジ
スタ8に格納. ・(1)で整数が無い場合 …A-2-3,A-4-5,A-6
-7 ・(1)で整数が有る場合 …A54,A32,A10 '0011'Dn'0011'Dn-1 → Ann-1 → データレジ
スタ8 (5) ・(1)で整数が無い場合 コード生成装置6は最下位桁の処理及びコード発生装置
7から完了コード’*’を出力するように要求して、完
了コードをデータレジスタ8に格納してコード変換を終
了する. '0011'D-8’*’→ A-8’*’ → データレジスタ
8 ・(1)で整数が有る場合 コード生成装置6はコード発生装置7に対して小数点コ
ード’.’を出力するように要求するとともに、コード
発生装置7からの出力'0011'をD-1に付加してアスキー
コードA-1を生成し、データレジスタ8に格納 ’.’'0011'D-1 → ’.’A-1 → データレジス
タ8 (6〜8) コード発生装置7からの出力'0011'をDn(n=-2
〜-7)に付加してアスキーコードAnを生成し、データレ
ジスタ8に格納. '0011'Dn'0011'Dn-1 → Ann-1 → データレジ
スタ8 (9) 最下位桁の処理及びコード発生装置7から完了コー
ド’*’の出力 '0011'D-8’*’→ A-8’*’ → データレジスタ
8 (1)〜(9)の動作によりコード変換を実行してアスキーコ
ードを転送することができ、特に整数がゼロのときには
(1)〜(5)動作が終了する。すなわち本実施例では、整数
が有る場合は9回の転送、整数が無い場合は5回の転送
でコード変換が終了する。したがって小数を含むデータ
のコード変換において、整数がゼロの場合の整数のコー
ド変換を省略するため、小数を含むデータのコード変換
は高速に実行することができる。またアスキーコードを
読み出すCPUは、転送順序を指定するだけで整数の有
無は意識することなく、アスキーコードの先頭から順に
コードデータを得ることができる。
When the CPU designates the transfer order in the order register 5, the integer zero judging device 12, the code generating device 5, and the code data generating device 6 perform the following operations according to the contents of the order register 5, and The generated code data is generated, and the generated code data is transferred to the data register 8. () Shows the contents of the order register 5. Will be described. () Shows the contents of the order register 5. (1) The integer zero determination device 12 determines the contents of the decimal integer register 2. When there is no integer, the code generator 6 sends the decimal point code '. 'With requests to output the output from the code generator 7 "0011" to generate ASCII code A -1 in addition to D -1, stored in the data register 8'. ''0011'D -1 → '. 'A -1 → data register 8 ・ If there is an integer, the output' 0011 'from the code generator 7 is added to D n (n = 7 to 6) to generate an ASCII code An , and the data register 8
2 digit ASCII code A n storage '0011'D 7' 0011'D output from 6 → A 7 A 6 → data register 8 (2-4) code generator 7 "0011" is added to D n to Are generated and stored in the data register 8. ・ If there is no integer in (1): A- 2A- 3 , A- 4A- 5 , A- 6A
If the integer is at a -7 · (1) ... A 5 A 4, A 3 A 2, A 1 A 0 '0011'D n'0011'D n-1 → A n A n-1 → data register 8 ( 5) When there is no integer in (1) The code generator 6 requests the processing of the least significant digit and outputs a completion code '*' from the code generator 7, and stores the completion code in the data register 8. To terminate the code conversion. '0011' D -8 '*' → A -8 '*' → Data register 8-When there is an integer in (1) The code generator 6 sends the decimal point code '. 'With requests to output the output from the code generator 7 "0011" to generate ASCII code A -1 in addition to D -1, stored in the data register 8'. ''0011'D -1 → '. 'A -1 → Data register 8 (6 to 8) Output' 0011 'from code generator 7 to D n (n = -2
Generates ASCII code A n is added to the ~-7), stored in the data register 8. '0011'D n'0011'D n -1 → A n A n-1 → data register 8 (9) the least significant Digit processing and output of completion code '*' from code generator 7 '0011' D -8 '*' → A -8 '*' → Data register 8 Executes code conversion by the operations of (1) to (9) ASCII code can be transferred, especially when the integer is zero
The operations (1) to (5) end. That is, in this embodiment, the code conversion is completed after nine transfers when there is an integer, and five times when there is no integer. Therefore, in code conversion of data including decimal numbers, code conversion of integers when the integer is zero is omitted, so that code conversion of data including decimal numbers can be executed at high speed. In addition, the CPU that reads the ASCII code can obtain the code data in order from the head of the ASCII code only by designating the transfer order and without being aware of the presence or absence of the integer.

【0037】以上のように、本実施例によれば、整数が
ゼロであるかどうかを判定してデータの転送順序をアス
キーコードデータの読み出しと同時に転送することで、
従来のコード変換装置で問題となっていた整数がゼロの
場合の不必要な整数コード変換を省略することができる
ため、小数を含む2進データのコード変換を高速に実行
することができる。
As described above, according to this embodiment, it is determined whether or not an integer is zero and the data transfer order is transferred simultaneously with the reading of the ASCII code data.
Unnecessary integer code conversion when the integer is zero, which is a problem in the conventional code conversion device, can be omitted, so that code conversion of binary data including decimals can be performed at high speed.

【0038】(実施例4)図4は本発明の第4の実施例
におけるコード変換装置の構成図を示すものである。図
4において、1は2進データを2進10進変換して10
進データを出力する2進10進変換装置、2は2進10
進変換装置1から出力された10進データを保持する1
0進整数レジスタ、13は10進整数レジスタ2の内容
から最上位桁側にある数値’0’を示すコードを検出す
る整数ゼロ検出装置、14は整数ゼロ検出装置13の出
力から10進データの最上位桁を指示する最上位桁指示
装置、7は最上位桁指示装置14の出力から前記10進
データのコード変換時に付加すべきコード情報と完了コ
ードを発生するコード発生装置、6は最上位桁指示装置
14の出力から変換すべきコードを決定し、数値コード
を変換する時は10進整数レジスタ2の内容からコード
変換する10進データを選択しコード発生装置7から出
力されたコード情報を前記10進データに付加してコー
ドデータを生成し、完了コードを変換する時はコード発
生装置7から出力されたコードデータをそのまま出力す
るコードデータ生成装置、8はコードデータ生成装置6
の出力を保持するデータレジスタ、5はコード発生装置
7とコード生成装置6にコード変換の指示を与えるとと
もに、コードデータ生成装置6によって生成されたコー
ドデータをデータレジスタ8へ転送するときの転送順序
を示すデータを保持する順序レジスタである。
(Embodiment 4) FIG. 4 shows a block diagram of a code converter according to a fourth embodiment of the present invention. In FIG. 4, 1 is a value obtained by converting binary data into a binary value
Binary-to-decimal conversion device that outputs binary data
Holding decimal data output from decimal conversion device 1
A zero-digit integer register, 13 is an integer zero detection device for detecting a code indicating a value “0” at the most significant digit side from the contents of the decimal integer register 2, and 14 is a decimal data from the output of the integer zero detection device 13. The most significant digit designating device for designating the most significant digit, 7 is a code generating device for generating code information to be added and a completion code at the time of code conversion of the decimal data from the output of the most significant digit designating device 14, and 6 is the most significant digit The code to be converted is determined from the output of the digit indicating device 14, and when converting the numerical code, the decimal data to be converted is selected from the contents of the decimal integer register 2 and the code information output from the code generator 7 is converted. Code data is generated by adding code data to the decimal data and outputting the code data output from the code generator 7 as it is when converting the completion code. Location, 8 code data generator 6
The data register 5 holds the output of the code generator 5, and the code generator 5 and the code generator 6 give a code conversion instruction, and the transfer order when the code data generated by the code data generator 6 is transferred to the data register 8. Is an order register that holds data indicating the following.

【0039】以下、図4に従ってその動作を説明する。
本実施例は2進データをアスキーコード変換するもので
あり、整数部の最上位桁側にゼロがある場合には、その
ゼロのコード変換を省略するものである。例えば、10
進8桁の整数データのアスキーコード変換では、上位7
桁がゼロである場合’0000000A0’ではなく’
0’を出力する。
The operation will be described below with reference to FIG.
In this embodiment, binary data is converted to ASCII code. If there is a zero at the most significant digit of the integer part, the code conversion of the zero is omitted. For example, 10
In ASCII code conversion of 8-digit integer data, the upper 7
'00000000A 0 ' instead of ' 0 ' if the digit is zero
A 0 'is output.

【0040】整数2進データを2進10進変換装置1に
より2進10進変換した結果、8桁の10進整数データ
(D76543210)が10進整数レジスタ2
に、保持された場合のアスキーコード変換について説明
する。ここで、Dn(n=7〜0)はBCD(4bit)、An(n=
7〜0)はDnの上位に'0011'を付加して得られたアスキ
ーコード(8bit)、’*’は完了コード(8bit)とする。ま
た、10進整数レジスタ2は32ビット、データレジス
タ8は16ビットとし、コード生成装置6からデータレ
ジスタ8には16ビット(アスキーコード2個)ずつデ
ータが転送でき、転送順序はアドレスバスの一部を使用
して転送するものとする。
As a result of the binary-to-decimal conversion of the integer binary data by the binary-to-decimal converter 1, 8-digit decimal integer data (D 7 D 6 D 5 D 4 D 3 D 2 D 1 D 0 ) is obtained. Decimal integer register 2
Next, ASCII code conversion in the case of being held will be described. Here, D n (n = 7 to 0) is BCD (4 bits), A n (n =
7-0) the ASCII code obtained by adding "0011" to the upper D n (8bit), '* ' is a completion code (8bit). The decimal integer register 2 has 32 bits and the data register 8 has 16 bits. Data can be transferred from the code generator 6 to the data register 8 by 16 bits (two ASCII codes) at a time. It is assumed that the transfer is carried out using a copy unit.

【0041】(表5)は最上位桁側に0を含む整数デー
タ(10進整数レジスタ2の内容)のタイプと、それぞ
れのタイプに対応する順序レジスタ5の内容と変換コー
ドデータとを示すものである。(表5)において、’
…’はコード変換を実行しないことを示す。
Table 5 shows the types of integer data (contents of the decimal integer register 2) including 0 at the most significant digit side, and the contents of the order register 5 and the conversion code data corresponding to each type. It is. In Table 5, '
... 'indicates that no code conversion is performed.

【0042】[0042]

【表5】 [Table 5]

【0043】整数ゼロ検出装置13において、10進整
数レジスタ2の内容の最上位桁側の0を検出し、最上位
桁指示装置14において(表5)のタイプ(0〜8)を指
示する。最上位桁指示装置14の指示により、(表5)
に示すように順序レジスタ5の内容に従ってコードデー
タに変換する。例えば、Type7の場合は順序レジスタ
が’1’のときD0を選択してA0を生成し、最上位桁指
示装置14の指示を受けたコード発生装置7とコード生
成装置6とが完了コード’*’を追加して出力する。そ
の他のタイプの場合も同様にして、アスキーコードデー
タを出力する。
The integer zero detector 13 detects the most significant digit 0 of the contents of the decimal integer register 2 and the most significant digit indicator 14 indicates the type (0 to 8) of (Table 5). According to the instruction of the most significant digit indicating device 14, (Table 5)
Is converted into code data according to the contents of the order register 5 as shown in FIG. For example, in the case of Type 7, when the order register is “1”, D 0 is selected to generate A 0 , and the code generator 7 and the code generator 6 that have received the instruction of the most significant digit indicating device 14 transmit the completion code. Add '*' and output. ASCII code data is output in the same manner for other types.

【0044】このような動作によりコード変換を実行し
てアスキーコードを出力することができ、特に整数の最
上位桁側がゼロまたはゼロが連続する場合には、ゼロの
コード変換を省略するため整数データのコード変換を高
速に実行することができる。またアスキーコードを読み
出すCPUは、転送順序を指定するだけで整数の最上位
桁側の’0’コードデータは意識することなく、アスキ
ーコードの先頭から順にコードデータを得ることができ
る。
By such an operation, code conversion can be executed and an ASCII code can be output. In particular, when the most significant digit of the integer is zero or consecutive zeros, the code conversion of zero is omitted, so that the integer data is omitted. Can be executed at high speed. Also, the CPU that reads the ASCII code can obtain the code data in order from the head of the ASCII code only by designating the transfer order and without considering the “0” code data on the most significant digit side of the integer.

【0045】以上のように、本実施例によれば、整数デ
ータの最上位桁側の連続する’0’コードを検出してデ
ータの転送順序をアスキーコードデータの読み出しと同
時に転送することで、従来のコード変換装置で問題とな
っていた最上位桁側の整数がゼロの場合の不必要な整数
コード変換を省略することができるため、2進整数デー
タのコード変換を高速に実行することができる。
As described above, according to the present embodiment, consecutive "0" codes on the most significant digit side of the integer data are detected, and the data transfer order is transferred simultaneously with the reading of the ASCII code data. Unnecessary integer code conversion when the most significant digit is zero, which is a problem in the conventional code conversion device, can be omitted, so that code conversion of binary integer data can be performed at high speed. it can.

【0046】(実施例5)図5は本発明の第5の実施例
におけるコード変換装置の構成図を示すものである。図
5において、1は小数2進データを2進10進変換して
10進データを出力する2進10進変換装置、11は2
進10進変換装置1から出力された10進データを保持
する10進小数レジスタ、15は10進小数レジスタ1
1の内容から最下位桁側から連続する数値’0’を示す
コードを検出する小数ゼロ検出装置、16は小数ゼロ検
出装置15の出力から10進データの最下位桁を指示す
る最下位桁指示装置、7は最下位桁指示装置16の出力
から前記10進データのコード変換時に付加すべきコー
ド情報と小数点コード及び完了コードを発生するコード
発生装置、6は最下位桁指示装置16の出力から変換す
べきコードを決定し、数値コードを変換する時は10進
小数レジスタ11の内容からコード変換する10進デー
タを選択しコード発生装置7から出力されたコード情報
を前記10進データに付加してコードデータを生成し、
小数点コード及び完了コードを変換する時はコード発生
装置7から出力されたコードデータをそのまま出力する
コードデータ生成装置、8はコードデータ生成装置6の
出力を保持するデータレジスタ、5はコード発生装置7
とコード生成装置6にコード変換の指示を与えるととも
に、コードデータ生成装置6によって生成されたコード
データをデータレジスタ8へ転送するときの転送順序を
示すデータを保持する順序レジスタである。
(Embodiment 5) FIG. 5 shows a configuration diagram of a code conversion apparatus according to a fifth embodiment of the present invention. In FIG. 5, reference numeral 1 denotes a binary-decimal conversion device for converting decimal binary data into binary-decimal data and outputting decimal data;
Decimal decimal register for holding decimal data output from decimal-to-decimal conversion device 1, 15 is decimal decimal register 1
Decimal zero detecting device for detecting a code indicating a continuous numerical value '0' from the least significant digit side from the content of 1. Numeral 16 designates the least significant digit for indicating the least significant digit of decimal data from the output of the decimal zero detecting device 15 A code generator 7 for generating code information to be added to the decimal data code from the output of the least significant digit indicating device 16 and a decimal point code and a completion code from the output of the least significant digit indicating device 16; When the code to be converted is determined and the numerical code is converted, the decimal data to be converted is selected from the contents of the decimal decimal register 11 and the code information output from the code generator 7 is added to the decimal data. To generate code data,
When converting the decimal point code and the completion code, a code data generator for directly outputting the code data output from the code generator 7, 8 is a data register for holding the output of the code data generator 6, and 5 is a code generator 7.
And an instruction register for giving a code conversion instruction to the code generation device 6 and holding data indicating a transfer order when the code data generated by the code data generation device 6 is transferred to the data register 8.

【0047】以下、図5に従ってその動作を説明する。
本実施例は2進データをアスキーコード変換するもので
あり、小数部の最下位桁側にゼロがある場合には、小数
部の最下位桁側のコード変換を省略するものである。例
えば、10進8桁の小数部を含む2進データのアスキー
コード変換では、最下位桁側7桁がゼロである場合’.
-10000000’ではなく、’.A-1’を出力す
る。
The operation will be described below with reference to FIG.
In the present embodiment, binary data is converted to ASCII code. If there is a zero at the least significant digit of the decimal part, code conversion of the least significant digit of the decimal part is omitted. For example, in ASCII code conversion of binary data including a decimal part of eight decimal digits, when the least significant seven digits are zero.
A - 100000000 ', not'. A- 1 'is output.

【0048】小数を含む2進データを2進10進変換装
置1により2進10進変換した結果、8桁の10進小数
データ(D-1-2-3-4-5-6-7-8)が10進
小数レジスタ2に、保持された場合のアスキーコード変
換について説明する。ここで、Dn(n=-1〜-8)はBC
D(4bit)、An(n=-1〜-8)はDnの上位に'0011'を付加
して得られたアスキーコード(8bit)、’*’は完了コー
ド(8bit)とする。また、10進小数レジスタ11は32
ビット、データレジスタ8は16ビットとし、16ビッ
ト(アスキーコード2個)ずつデータが転送でき、転送
順序はアドレスバスの一部を使用して転送するものとす
る。
As a result of binary-decimal conversion of binary data including decimals by the binary-decimal conversion device 1, 8-digit decimal decimal data (D -1 D -2 D -3 D -4 D -5 D) -6 D -7 D -8 ) will be described in the case of ASCII code conversion when it is held in the decimal fraction register 2. Here, D n (n = -1 to -8) is BC
D (4bit), A n ( n = -1~-8) is the ASCII code obtained by adding "0011" to the upper D n (8bit), '* ' is a completion code (8bit). Decimal decimal register 11 is 32
The bit and data register 8 has 16 bits, and data can be transferred by 16 bits (two ASCII codes), and the transfer order is to be transferred using a part of the address bus.

【0049】(表6)は最下位桁側に0を含む小数デー
タ(10進小数レジスタ11の内容)のタイプを、(表
7)はそれぞれのタイプに対応する順序レジスタ5の内
容と変換コードデータを示す。(表7)において、’
…’はコード変換を実行しないことを示す。
Table 6 shows the types of decimal data (contents of the decimal decimal register 11) including 0 on the least significant digit side, and Table 7 shows the contents of the order register 5 and the conversion code corresponding to each type. Show data. In Table 7, '
... 'indicates that no code conversion is performed.

【0050】[0050]

【表6】 [Table 6]

【0051】[0051]

【表7】 [Table 7]

【0052】小数ゼロ検出装置15において10進小数
レジスタ11の内容の最下位桁側の0を検出し、最下位
桁指示装置16において(表6)のタイプを指示する。
最下位桁指示装置16の指示により、(表7)に示すよ
うに順序レジスタ5の内容に従ってコードデータに変換
する。例えば、Type7の場合は順序レジスタが’1’の
とき小数点コード’.’に、10進小数レジスタ11か
らD-1を選択して生成したA-1を追加して出力する。最
下位桁指示装置16から指示を受けたコード発生装置7
とコード生成装置6とが順序レジスタが’2’のとき完
了コード’*’を出力する。その他のタイプの場合も同
様にして、アスキーコードデータを出力する。
The decimal zero detecting device 15 detects 0 at the least significant digit side of the contents of the decimal decimal register 11, and the least significant digit indicating device 16 indicates the type of (Table 6).
According to the instruction of the least significant digit indicating device 16, the data is converted into code data according to the contents of the order register 5 as shown in (Table 7). For example, in the case of Type 7, when the order register is "1", the decimal point code ". ', A- 1 generated by selecting D- 1 from the decimal fraction register 11 is added and output. Code generator 7 receiving an instruction from least significant digit indicating device 16
And the code generator 6 outputs a completion code '*' when the order register is '2'. ASCII code data is output in the same manner for other types.

【0053】このような動作によりコード変換を実行し
てアスキーコードを転送することができ、特に小数デー
タのコード変換において、小数の最下位桁側がゼロまた
はゼロが連続する場合に、小数のコード変換を省略する
ため小数データのコード変換を高速に実行することがで
きる。また変換後のアスキーコードを読み出すCPU
は、転送順序を指定するだけで小数の最下位桁側のゼロ
データは意識することなく、最下位桁側の0のコードを
省略して順にコードデータを得ることができる。
With such an operation, the code conversion can be executed to transfer the ASCII code. In particular, in the code conversion of decimal data, when the least significant digit of the decimal is zero or consecutive zeros, the code conversion of the decimal is performed. , The code conversion of decimal data can be executed at high speed. CPU for reading converted ASCII code
In this method, code data can be obtained in order by omitting the code of 0 at the least significant digit side without specifying the zero data at the least significant digit side of the decimal number only by designating the transfer order.

【0054】以上のように、本実施例によれば、小数デ
ータの最下位側の’0’や連続する’0’を検出してデ
ータの転送順序をアスキーコードデータの読み出しと同
時に転送することで、従来のコード変換装置で問題とな
っていた最下位桁側の小数がゼロの場合の不必要な小数
コード変換を省略することができるため、2進小数デー
タのコード変換を高速に実行することができる。
As described above, according to this embodiment, it is possible to detect the least significant "0" or continuous "0" of decimal data and transfer the data simultaneously with the reading of the ASCII code data. Therefore, unnecessary decimal code conversion when the decimal point on the least significant digit side which is a problem in the conventional code conversion apparatus is zero can be omitted, so that code conversion of binary decimal data is executed at high speed. be able to.

【0055】なお上記実施例1〜5において、転送順序
はアドレスの一部を用いているため、最初の転送時にア
ドレスを指定した後はそのアドレスをインクリメントし
ながらデータを転送すればよいため、比較的簡単に転送
順序は生成することができる。例えば、アドレス下位4
ビットが転送順序を示すとすれば、最初の転送時のアド
レス下位4ビットを'0001'としておき、次の転送からは
このアドレスをインクリメントしていけばよい。
In the first to fifth embodiments, since a part of the address is used for the transfer order, the data may be transferred while incrementing the address after the address is specified at the time of the first transfer. The transfer order can be generated easily. For example, address lower 4
If the bits indicate the transfer order, the lower 4 bits of the address at the time of the first transfer should be set to '0001', and this address should be incremented from the next transfer.

【0056】また上記各実施例ではアスキーコードにつ
いて説明したが、EBCDIC,JISコード等にもコ
ード発生装置6の出力コードを変更することで同様にし
て実現することができる。また、本実施例では32ビッ
トの10進整数レジスタ、16ビットのデータレジスタ
について説明したが、これ以外のデータ幅についても
(表2)〜(表7)の内容を変更することで同様にして
実現できる。
In each of the above embodiments, the ASCII code has been described. However, the present invention can be similarly realized by changing the output code of the code generator 6 to EBCDIC, JIS code and the like. In this embodiment, the 32-bit decimal integer register and the 16-bit data register have been described. However, other data widths can be similarly obtained by changing the contents of (Table 2) to (Table 7). realizable.

【0057】[0057]

【発明の効果】以上説明したように本発明は、BCDに
変換されたデータの内容がどのようなものであるかに関
わらず、CPUがすべてのデータのアドレスを指定して
その全てをアスキーコード等に変換していた従来の構成
を改善するものであり、BCDに変換されたデータ中の
無意味なデータを判別するとともに、変換すべきデータ
を任意に選択できるようにすることで、以下のそれぞれ
のコード変換を高速化するものである。
As described above, according to the present invention, regardless of the contents of the data converted into the BCD, the CPU specifies the addresses of all the data and converts all the data into ASCII codes. This is to improve the conventional configuration which has been converted into data, etc., and by determining meaningless data in the data converted into BCD, and by enabling the user to arbitrarily select data to be converted, the following is achieved. This is to speed up each code conversion.

【0058】第1に、2進データの符号を判定してその
符号が符号が負の時のみ負の符号コードを生成して出力
することにより、符号が正である場合の不必要な符号コ
ード変換を省略することができるため、符号を含む2進
データのコード変換を高速に実行することができる。
First, by determining the sign of binary data and generating and outputting a negative sign code only when the sign is negative, an unnecessary sign code when the sign is positive is obtained. Since the conversion can be omitted, the code conversion of the binary data including the code can be executed at high speed.

【0059】第2に、小数がすべてゼロであるかどうか
を判定することで、小数がゼロの場合の不必要な小数コ
ード変換を省略することができるため、小数を含む2進
データのコード変換を高速に実行することができる。
Second, unnecessary decimal code conversion when the decimal number is zero can be omitted by determining whether or not all the decimal numbers are zero. Therefore, code conversion of binary data including a decimal number can be omitted. Can be executed at high speed.

【0060】第3に、整数がゼロであるかどうかを判定
することで、整数がゼロの場合の不必要な整数コード変
換を省略することができるため、小数を含む2進データ
のコード変換を高速に実行することができる。
Third, by determining whether or not an integer is zero, unnecessary integer code conversion when the integer is zero can be omitted. Can be executed at high speed.

【0061】第4に、整数データの最上位桁側の連続す
る’0’コードを検出することで、最上位桁側の整数が
ゼロの場合の不必要な整数コード変換を省略することが
できるため、2進整数データのコード変換を高速に実行
することができる。
Fourth, by detecting consecutive '0' codes on the most significant digit side of the integer data, unnecessary integer code conversion when the integer on the most significant digit side is zero can be omitted. Therefore, code conversion of binary integer data can be executed at high speed.

【0062】第5に、小数データの最下位側から連続す
る’0’データを検出することで、最下位桁側の小数が
ゼロの場合の不必要な小数コード変換を省略することが
できるため、2進小数データのコード変換を高速に実行
することができる。
Fifth, by detecting consecutive "0" data from the least significant digit of the decimal data, unnecessary decimal code conversion when the decimal digit at the least significant digit is zero can be omitted. The code conversion of binary decimal data can be executed at high speed.

【0063】このように本発明によれば、ユーザインタ
フェースを含むシステムにおいて多用されかつ性能に大
きな影響を与える、数値演算で用いる内部データフォー
マットをアスキーコード等に変換するコード変換を高速
に実行でき、その実用的効果は極めて大きい。
As described above, according to the present invention, a code conversion for converting an internal data format used in a numerical operation, which is frequently used in a system including a user interface and greatly affects performance, into an ASCII code or the like can be executed at high speed. Its practical effect is extremely large.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の第1の実施例におけるコード変換装置
の構成図
FIG. 1 is a configuration diagram of a code conversion device according to a first embodiment of the present invention.

【図2】本発明の第2の実施例におけるコード変換装置
の構成図
FIG. 2 is a configuration diagram of a code conversion device according to a second embodiment of the present invention.

【図3】本発明の第3の実施例におけるコード変換装置
の構成図
FIG. 3 is a configuration diagram of a code conversion device according to a third embodiment of the present invention.

【図4】本発明の第4の実施例におけるコード変換装置
の構成図
FIG. 4 is a configuration diagram of a code conversion device according to a fourth embodiment of the present invention.

【図5】本発明の第5の実施例におけるコード変換装置
の構成図
FIG. 5 is a configuration diagram of a code conversion device according to a fifth embodiment of the present invention.

【図6】従来のコード変換装置の構成図FIG. 6 is a configuration diagram of a conventional code conversion device.

【符号の説明】[Explanation of symbols]

1 2進10進変換装置 2 10進整数レジスタ 3 符号フラグ 4 符号判定装置 5 順序レジスタ 6 コードデータ生成装置 7 コード発生装置 8 データレジスタ 9 小数ゼロ判定装置 11 10進小数レジスタ 12 整数ゼロ判定装置 13 整数ゼロ検出装置 14 最上位桁指示装置 15 小数ゼロ検出装置 16 最下位桁指示装置 20 アドレスレジスタ Reference Signs List 1 binary-decimal conversion device 2 decimal integer register 3 code flag 4 code determination device 5 sequence register 6 code data generation device 7 code generation device 8 data register 9 decimal zero determination device 11 decimal decimal register 12 integer zero determination device 13 Integer zero detector 14 Most significant digit indicator 15 Decimal zero detector 16 Least significant digit indicator 20 Address register

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06F 5/00 G06F 7/38 H03M 7/02 H03M 7/12 ──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int.Cl. 7 , DB name) G06F 5/00 G06F 7/38 H03M 7/02 H03M 7/12

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 正負の符号付き2進データを2進10進
変換して正負の符号と複数桁の10進データを出力する
2進10進変換装置と、 前記2進10進変換装置から出力された複数桁の10進
データを保持する10進レジスタと、 前記2進10進変換装置から出力された符号を保持する
符号フラグと、 前記符号フラグを入力してその正負を判定する符号判定
装置と、 前記符号判定装置が負の符号を判定した場合のみ符号コ
ードを発生するとともに、前記10進データを他のコー
ドデータに変換する際に各桁の10進データに付加すべ
きコード情報を発生するコード発生装置と、 前記符号判定装置が正の符号を示す場合には、前記コー
ド発生装置から出力されたコード情報を、10進レジス
タから入力された10進データに対して予め定められた
桁数ずつ付加して生成したコードデータを順次出力し、
符号判定装置が負の符号を示す場合には、前記コード発
生装置から出力された負の符号コードと、前記コード発
生装置から出力されたコード情報を、10進レジスタか
ら入力された10進データに対して予め定められた桁数
ずつ付加して生成したコードデータとを順次出力するコ
ードデータ生成装置と、 前記コードデータ生成装置の出力を保持するデータレジ
スタと、 前記コード発生装置に対して符号コードまたはコード情
報の発生を指示するとともに、前記コードデータ生成装
置に対してコードデータの生成と前記データレジスタへ
のデータ転送を指示し、かつ前記コードデータ生成装置
から前記データレジスタへの転送順序を示すデータを保
持する順序レジスタとを具備するコード変換装置。
1. A binary-to-decimal conversion device for converting binary data with a positive / negative sign into binary-decimal data and outputting a positive / negative sign and a plurality of digits of decimal data, and an output from the binary-decimal converter. A decimal register for storing the obtained plural-digit decimal data, a code flag for storing the code output from the binary-decimal conversion device, and a code determination device for receiving the code flag and determining whether the code flag is positive or negative. A code code is generated only when the code determination device determines a negative code, and code information to be added to the decimal data of each digit when the decimal data is converted to other code data is generated. When the code determination device indicates a positive code, the code information output from the code generation device is determined in advance with respect to the decimal data input from the decimal register. Added by the digits of the generated code data to sequentially output,
When the sign determination device indicates a negative sign, the negative sign code output from the code generation device and the code information output from the code generation device are converted into decimal data input from a decimal register. A code data generation device that sequentially outputs code data generated by adding a predetermined number of digits to the code data, a data register that holds an output of the code data generation device, and a code code for the code generation device. Or, while instructing generation of code information, instructing the code data generation device to generate code data and transferring data to the data register, and indicating a transfer order from the code data generation device to the data register. A code conversion device comprising: an order register for holding data.
【請求項2】 小数を含む2進データを2進10進変換
してそれぞれ複数桁の10進整数データと10進小数デ
ータとを出力する2進10進変換装置と、 前記2進10進変換装置から出力された10進整数デー
タを保持する10進整数レジスタと、 前記2進10進変換装置から出力された10進小数デー
タを保持する10進小数レジスタと、 前記10進小数レジスタの内容が’0’であるかどうか
を判定する小数ゼロ判定装置と、 前記小数ゼロ判定装置の出力に応じ、前記10進整数デ
ータと10進小数データのコード変換時に付加すべきコ
ード情報と、小数点コードとを発生するコード発生装置
と、 前記小数ゼロ判定装置が小数のないことを示す場合に
は、前記コード発生装置から出力されたコード情報を、
10進整数レジスタから出力された10進整数データに
対して予め定められた桁数ずつ付加して生成したコード
データを順次出力し、前記小数ゼロ判定装置が小数のあ
ることを示す場合には、前記コード発生装置から出力さ
れたコード情報を、10進整数レジスタから入力された
10進整数データに対して予め定められた桁数ずつ付加
して生成したコードデータと、前記コード発生装置から
出力された小数点コードと、前記コード発生装置から出
力されたコード情報を、10進小数レジスタから入力さ
れた10進小数データに対して予め定められた桁数ずつ
付加して生成したコードデータとを順次出力するコード
データ生成装置と、 前記コードデータ生成装置の出力を保持するデータレジ
スタと、 前記コード発生装置に対してコード情報または小数点コ
ードの発生を指示するとともに、前記コードデータ生成
装置に対してコードデータの生成と前記データレジスタ
へのデータ転送を指示し、かつ前記コードデータ生成装
置から前記データレジスタへの転送順序を示すデータを
保持する順序レジスタとを具備するコード変換装置。
2. A binary-decimal conversion device for converting binary data including a decimal to binary-decimal data and outputting a plurality of decimal integer data and decimal decimal data, respectively, the binary-decimal conversion. The contents of the decimal integer register holding the decimal integer data output from the device, the decimal decimal register holding the decimal decimal data output from the binary-decimal conversion device, and the content of the decimal decimal register A decimal zero determination device for determining whether it is '0', code information to be added at the time of code conversion of the decimal integer data and decimal decimal data, and a decimal point code according to an output of the decimal zero determination device. And a code generator that generates the code information output from the code generator when the decimal zero determination device indicates that there is no decimal.
When the code data generated by adding a predetermined number of digits to the decimal integer data output from the decimal integer register is sequentially output and the decimal zero determination device indicates that there is a decimal number, Code data generated by adding code information output from the code generator to a predetermined number of digits to decimal integer data input from a decimal integer register, and code data output from the code generator. The decimal point code and code data generated by adding code information output from the code generator to the decimal data input from the decimal decimal register by a predetermined number of digits are sequentially output. A data register for holding an output of the code data generator; and code information for the code generator. Indicates generation of a decimal point code, indicates generation of code data to the code data generation device and data transfer to the data register, and indicates a transfer order from the code data generation device to the data register. A code conversion device comprising: an order register for holding data.
【請求項3】 小数を含む2進データを2進10進変換
してそれぞれ複数桁の10進整数データと10進小数デ
ータを出力する2進10進変換装置と、 前記2進10進変換装置から出力された10進整数デー
タを保持する10進整数レジスタと、 前記2進10進変換装置から出力された10進小数デー
タを保持する10進小数レジスタと、 前記10進整数レジスタの内容が’0’であることを判
定する整数ゼロ判定装置と、 前記整数ゼロ判定装置の出力に応じ、前記10進整数デ
ータと10進小数データのコード変換時に付加すべきコ
ード情報と、小数点コードとを発生するコード発生装置
と、 前記整数ゼロ判定装置が整数のないことを示す場合に
は、前記コード発生装置から出力された小数点コード
と、前記コード発生装置から出力されたコード情報を前
記10進小数レジスタから出力された10進小数データ
に対して予め定められた桁数ずつ付加して生成したコー
ドデータとを順次出力し、前記整数ゼロ判定装置が整数
のあることを示す場合には、前記コード発生装置から出
力されたコード情報を、10進整数レジスタから入力さ
れた10進整数データに対して予め定められた桁数ずつ
付加して生成したコードデータと、前記コード発生装置
から出力された小数点コードと、前記コード発生装置か
ら出力されたコード情報を、10進小数レジスタから入
力された10進小数データに対して予め定められた桁数
ずつ付加して生成したコードデータとを順次出力するコ
ードデータ生成装置と、 前記コードデータ生成装置の出力を保持するデータレジ
スタと、 前記コード発生装置に対してコード情報または小数点コ
ードの発生を指示するとともに、前記コードデータ生成
装置に対してコードデータの生成と前記データレジスタ
へのデータ転送を指示し、かつ前記コードデータ生成装
置から前記データレジスタへの転送順序を示すデータを
保持する順序レジスタとを具備するコード変換装置。
3. A binary-decimal conversion device for converting binary data including a decimal number into binary-decimal data and outputting a plurality of decimal integer data and decimal decimal data, respectively, and the binary-decimal conversion device. A decimal integer register holding the decimal integer data output from the binary integer conversion device; a decimal decimal register holding the decimal decimal data output from the binary-to-decimal conversion device; An integer zero judging device for judging that it is 0 ', and code information to be added at the time of code conversion between the decimal integer data and decimal decimal data and a decimal point code in accordance with an output of the integer zero judging device. And the decimal point code output from the code generator, if the integer zero determination device indicates that there is no integer, and the code generator Code information generated by adding code information to the decimal decimal data output from the decimal decimal register by a predetermined number of digits, and sequentially outputting the generated code data. In the case of indicating, the code information output from the code generator, code data generated by adding a predetermined number of digits to the decimal integer data input from the decimal integer register, the code data, The decimal point code output from the code generator and the code information output from the code generator are generated by adding a predetermined number of digits to decimal decimal data input from the decimal decimal register. A code data generation device that sequentially outputs code data, a data register that holds an output of the code data generation device, To generate code information or a decimal point code, instruct the code data generator to generate code data and transfer data to the data register, and transfer the code data from the code data generator to the data register. A code conversion device comprising: an order register for holding data indicating an order.
【請求項4】 2進データを2進10進変換して複数桁
の10進整数データを出力する2進10進変換装置と、 前記2進10進変換装置から出力された10進整数デー
タを保持する10整数進レジスタと、 前記10進整数レジスタの内容から最上位桁の’0’ま
たは最上位桁から連続する’0’を示すデータを検出す
る整数ゼロ検出装置と、 前記整数ゼロ検出装置の出力から、10進整数データの
最上位桁から’0’以外のデータがある桁を指示する最
上位桁指示装置と、 前記最上位桁指示装置の出力に応じて、前記10進整数
データのコード変換時に付加すべきコード情報を発生す
るコード発生装置と、 前記最上位桁指示装置の出力に基づき、前記10進整数
レジスタから入力された10進整数データに対して、最
上位桁の’0’または最上位桁から連続する’0’を示
すデータ以外の変換すべきデータを決定し、それらに前
記コード発生装置から出力されたコード情報を予め定め
られた桁数ずつ付加して生成したコードデータを順次出
力するコードデータ生成装置と、 前記コードデータ生成装置の出力を保持するデータレジ
スタと、 前記コード発生装置に対してコード情報の発生を指示す
るとともに、前記コードデータ生成装置に対してコード
データの生成と前記データレジスタへのデータ転送を指
示し、かつ前記コードデータ生成装置から前記データレ
ジスタへの転送順序を示すデータを保持する順序レジス
タとを具備するコード変換装置。
4. A binary-decimal conversion device for converting binary data to binary-decimal and outputting a plurality of digits of decimal integer data, and converting the decimal integer data output from the binary-decimal conversion device to A decimal integer register to be held; an integer zero detection device for detecting data indicating “0” of the most significant digit or “0” continuous from the most significant digit from the contents of the decimal integer register; and the integer zero detection device. From the output of the most significant digit of the decimal integer data, a most significant digit indicating device for designating a digit having data other than '0', and, according to the output of the most significant digit indicating device, A code generator for generating code information to be added at the time of code conversion; and, based on the output of the most significant digit indicating device, the most significant digit '0' with respect to the decimal integer data input from the decimal integer register. 'Or most significant digit A code for determining data to be converted other than data indicating continuous '0', adding code information output from the code generator to the data by a predetermined number of digits, and sequentially outputting code data generated. A data register that holds an output of the code data generation device; a data register that instructs the code generation device to generate code information; and generates code data and generates the code data to the code data generation device. An order register for instructing data transfer to a register and holding data indicating an order of transfer from the code data generating device to the data register.
【請求項5】 小数2進データを2進10進変換して複
数桁の10進小数データを出力する2進10進変換装置
と、 前記2進10進変換装置から出力された複数桁の10進
小数データを保持する10進小数レジスタと、 前記10進小数レジスタの内容から最下位桁の’0’ま
たは最下位桁まで連続する’0’を示すデータを検出す
る小数ゼロ検出装置と、 前記小数ゼロ検出装置の出力から10進小数データの最
下位側から’0’以外のデータがある桁を指示する最下
位桁指示装置と、 前記最下位桁指示装置の出力に応じて、小数点コードま
たは前記10進小数データのコード変換時に付加すべき
コード情報を発生するコード発生装置と、 前記コード発生装置から出力された小数点コードと、前
記最下位桁指示装置の出力に基づき、前記10進小数レ
ジスタから入力された10進小数データに対して、最下
位桁の’0’または最下位桁まで連続する’0’を示す
データ以外の変換すべきデータを決定し、それらに前記
コード発生装置から出力されたコード情報を予め定めら
れた桁数ずつ付加して生成したコードデータとを順次出
力するコードデータ生成装置と、 前記コードデータ生成装置の出力を保持するデータレジ
スタと、 前記コード発生装置に対してコード情報の発生を指示す
るとともに、前記コードデータ生成装置に対してコード
データの生成と前記データレジスタへのデータ転送を指
示し、かつ前記コードデータ生成装置から前記データレ
ジスタへの転送順序を示すデータを保持する順序レジス
タとを具備するコード変換装置。
5. A binary-to-decimal conversion device for converting decimal binary data into binary-decimal data and outputting a plurality of decimal data, and a multi-digit decimal value output from the binary-decimal conversion device. A decimal decimal register for holding decimal decimal data, a decimal zero detection device for detecting data indicating '0' of the least significant digit or '0' continuous from the contents of the decimal decimal register to the least significant digit, A least significant digit indicating device that designates a digit having data other than '0' from the least significant digit of decimal decimal data from the output of the decimal zero detecting device; and a decimal point code or A code generator for generating code information to be added at the time of code conversion of the decimal decimal data; a decimal point code output from the code generator; The data to be converted other than the data indicating the least significant digit '0' or continuous '0' up to the least significant digit is determined for the decimal decimal data inputted from the code generator, A code data generation device that sequentially outputs code data generated by adding the output code information by a predetermined number of digits, a data register that holds an output of the code data generation device, and a code register. And instruct the code data generation device to generate code data and transfer data to the data register, and change the transfer order from the code data generation device to the data register. And a sequence register for holding the indicated data.
JP04090532A 1992-04-10 1992-04-10 Code conversion device Expired - Fee Related JP3097294B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP04090532A JP3097294B2 (en) 1992-04-10 1992-04-10 Code conversion device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP04090532A JP3097294B2 (en) 1992-04-10 1992-04-10 Code conversion device

Publications (2)

Publication Number Publication Date
JPH05289846A JPH05289846A (en) 1993-11-05
JP3097294B2 true JP3097294B2 (en) 2000-10-10

Family

ID=14001027

Family Applications (1)

Application Number Title Priority Date Filing Date
JP04090532A Expired - Fee Related JP3097294B2 (en) 1992-04-10 1992-04-10 Code conversion device

Country Status (1)

Country Link
JP (1) JP3097294B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6233631B1 (en) * 1998-12-07 2001-05-15 Xerox Corporation Upload/Download of Auditron information to PC or phone line
GB2376773B (en) * 2001-03-12 2005-09-21 Touch Technologies Inc Apparatus and method for display and/or precision operations of numerical values in binary systems

Also Published As

Publication number Publication date
JPH05289846A (en) 1993-11-05

Similar Documents

Publication Publication Date Title
JP3848983B2 (en) Data transmission method, data equalization method and apparatus
JP3615222B2 (en) Microprocessor having a packed operand packed arithmetic function
EP0136656B1 (en) A nibble and word addressable memory to accessing consecutive data units for supporting decimal arithmetic operations
JP3924307B2 (en) Arithmetic operation apparatus and arithmetic operation method
US8346828B2 (en) System and method for storing numbers in first and second formats in a register file
US6396420B1 (en) Delta compression of floating point coordinate data
JPH0145649B2 (en)
JPH1049369A (en) Data processor
JP3097294B2 (en) Code conversion device
JP4056199B2 (en) Methods, systems, and computer program products for optimizing single byte character processing for use within a multibyte character encoding scheme
JPH0315221B2 (en)
JP3120551B2 (en) Code conversion device
JPH08202529A (en) Method and device for data processing
JP2004355432A (en) Endian conversion circuit
US6128636A (en) Method for interfacing floating point and integer processes in a computer system
JP2713283B2 (en) Data processing device
JP3325326B2 (en) Electronic filing equipment
JP2889431B2 (en) Character processor
JP2752220B2 (en) String processing unit
JP3055558B2 (en) n-bit arithmetic unit
JPS63189942A (en) Information processor
JPS62274458A (en) Code conversion system
JPH10301940A (en) Information processor and its method
JPH02230320A (en) Data processor
JPH0855011A (en) Method for converting data between different machine kinds

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees