JPS5926060B2 - data processing equipment - Google Patents

data processing equipment

Info

Publication number
JPS5926060B2
JPS5926060B2 JP6419276A JP6419276A JPS5926060B2 JP S5926060 B2 JPS5926060 B2 JP S5926060B2 JP 6419276 A JP6419276 A JP 6419276A JP 6419276 A JP6419276 A JP 6419276A JP S5926060 B2 JPS5926060 B2 JP S5926060B2
Authority
JP
Japan
Prior art keywords
data
code
character code
external
internal
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
Application number
JP6419276A
Other languages
Japanese (ja)
Other versions
JPS52147034A (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.)
NEC Corp
Original Assignee
Nippon Electric 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP6419276A priority Critical patent/JPS5926060B2/en
Publication of JPS52147034A publication Critical patent/JPS52147034A/en
Publication of JPS5926060B2 publication Critical patent/JPS5926060B2/en
Expired legal-status Critical Current

Links

Description

【発明の詳細な説明】 本発明は例えば電子計算機でデータ処理を行なう際に、
個有の文字コード体系で表現されたファイル上のデータ
に関して、その文字コード体系を維持しながら演算処理
を効率よく実現する装置に係る。
[Detailed Description of the Invention] The present invention provides, for example, when performing data processing on an electronic computer,
The present invention relates to a device that efficiently implements arithmetic processing while maintaining the character code system for data on a file expressed in a unique character code system.

電子計算機を用いたデータ処理において、磁気ディスク
、磁気テープ等の外部媒体上のデータを表現するために
、使用される文字コードの組が指5 定され、現在文字
コードとして例えばJIS、EBCDIC、ASCI工
等の各種のコードセットが用いられる。
In data processing using electronic computers, a set of character codes are specified to be used to express data on external media such as magnetic disks and magnetic tapes. Currently, character codes such as JIS, EBCDIC, and ASCI are specified. Various types of code sets are used, such as engineering.

一方計算機は個有の文字コードを持つており、通常外部
媒体上の文字コードとその計算機の文字10コード間の
変換が計算機での入力処理および出力処理の実行時に行
なわれ、計算機内ではその計算機の個有文字コードを用
いて処理される。
On the other hand, a computer has its own character code, and conversion between the character code on an external medium and the computer's 10-character code is usually performed when the computer performs input processing and output processing; Processed using the unique character code.

しカルながら、計算機内での特定処理、例えば文字の大
小比較は変換過程で文字の大小順が乱されている15の
で計算機の文字コードで行なうことはできず、外部媒体
上の文字コードヘ戻した後、外部媒体上の文字コードを
用いて行なわなければならない。このような処理を実現
するために、従来においては計算機の文字コードで表現
されたデータを外20部媒体上の文字コードヘ変換する
ために専用の機械語命令(例えばよりMシステム360
の翻訳〔Translate〕命令)を用いて達成して
おり、(1)変換のための専用機械語命令を用意しなけ
ればならない、25(2)一連の処理を行なう機械語命
令列中に、必要に応じて変換のための機械語命令を挿入
しなければならず、機械語命令列が長くなる、(3)デ
ータの文字コードに依存して、変換のための機械語命令
が手続き部に入るため、データと30手続き部の分離を
行なうことができない、(4)変換手続きが機械語命令
の実行により行なわれるので、変換速度が低下する、等
の欠点を有している。
However, specific processing within a computer, such as character size comparison, cannot be performed using the computer's character code because the character order is disrupted in the conversion process15, so it must be returned to the character code on an external medium. After that, it must be done using the character code on the external medium. In order to realize such processing, in the past, dedicated machine language instructions (for example, M system 360
This is accomplished using the Translate command, which requires (1) a dedicated machine language instruction for conversion; (3) Machine language instructions for conversion must be inserted into the procedure division depending on the character code of the data. (4) Since the conversion procedure is performed by executing machine language instructions, the conversion speed decreases.

本発明の目的は上述の変換処理を高速に行なう35装置
を提供することである。
SUMMARY OF THE INVENTION An object of the present invention is to provide a 35 apparatus that performs the above-mentioned conversion process at high speed.

本発明の他の目的はコード指定をデータ側に持たせ、命
令側から分離した方式のデータ処理装置を提供すること
である。
Another object of the present invention is to provide a data processing device in which the code specification is provided on the data side and is separated from the instruction side.

本発明の更に他の目的は上述の変換処理をフアームウエ
アレベルで実現されるデータ処理装置を提供することで
ある。
Still another object of the present invention is to provide a data processing device that can implement the above conversion process at the firmware level.

すなわち、本発明は外部文字コードを一度内部文字コー
ドへ変換して処理するデータ処理方式において、外部で
の文字コードを指定する外部文字コード指定部を備えた
データ記述子と、内部文字コードを指定された外部文字
コードへ変換する文字コード変換テーブルと、特定命令
の実行に際し、前記データ記述子で指定された内部文字
コードと異なる外部文字コードのデータを前記文字コー
ド変換テーブルに従つて外部文字コードへ変換した後所
定の処理を行なう演算制御手段とを具備したデータ処理
装置である。
That is, the present invention provides a data descriptor that includes an external character code specification section that specifies an external character code and a data descriptor that specifies an internal character code in a data processing method that converts an external character code once into an internal character code and then processes the data. A character code conversion table that converts data into an external character code specified by This data processing device is equipped with an arithmetic control means that performs predetermined processing after converting the data into the data.

図は本発明を用いた実施例のプロツク図を示し、データ
記述子の番号を命令中で指定することによつて、データ
ヘアクセスする場合について示している。
The figure shows a block diagram of an embodiment using the present invention, and shows a case where data is accessed by specifying a data descriptor number in an instruction.

すなわち、本実施例は機械語命令列を貯える主記憶装置
1、データ記述子を格納する貯蔵装置2、内部コードを
外部コードへ変換するために用いる変換テーブル3、お
よび内部コードと異なるデータは外部コードへ変換しな
がら特定命令の実行を行なう実行制御手段4から成つて
いる。
That is, this embodiment includes a main memory 1 for storing machine language instruction sequences, a storage device 2 for storing data descriptors, a conversion table 3 used for converting internal code into external code, and data different from internal code to external code. It consists of an execution control means 4 that executes specific instructions while converting them into codes.

主記憶装置1は通常の例えばICメモリで構成され、機
械語命令およびデータ等を貯え、図では本発明が適用さ
れる一例として比較命令が示されている。
The main storage device 1 is composed of a conventional IC memory, for example, and stores machine language instructions, data, etc., and the figure shows a comparison instruction as an example to which the present invention is applied.

上記比較命令は8ビツトのオペレーシヨン・コード、デ
ータA,Bに対応するデータ記述子を指定する8ビツト
のデータ記述子番号から成つており、データ記述子で規
定されたデータA,Bの大小比較を行なう。
The above comparison instruction consists of an 8-bit operation code and an 8-bit data descriptor number that specifies the data descriptor corresponding to data A and B. Make a comparison.

データ記述子を貯える貯蔵装置2は通常の例えばCメモ
リで構成され、図で示されるように本実施例のデータ記
述子は4ビツトのデータタイブ部、4ビツトのコードセ
ツト指定部、8ビツトのデータ長指定部、および16ビ
ツトのアドレス指定部から成る32ビツト長である。
The storage device 2 for storing data descriptors is composed of a conventional C memory, for example, and as shown in the figure, the data descriptor of this embodiment has a 4-bit data type field, a 4-bit code set designation field, and an 8-bit code set designation field. It has a length of 32 bits, consisting of a data length designation part and a 16-bit address designation part.

データ記述子は命令中の8ビツトのデータ記述子番号に
より指定され、この番号をアドレスとして貯蔵装置2か
ら取り出される。データタイブ部はデータの種類を示し
、例えば文字データ、二進データ、十進データ等の1つ
を規定する。
The data descriptor is specified by an 8-bit data descriptor number in the instruction, and is retrieved from the storage device 2 using this number as an address. The data type section indicates the type of data, and defines one of, for example, character data, binary data, decimal data, etc.

コードセツト指定部はそのデータの外部媒体上でのコー
ドセツトの種類を示し、例えばJISコード、EBCD
ICコード、ASCIIコード、BCDコード等の1つ
を規定する。
The code set specification section indicates the type of code set on the external medium of the data, such as JIS code, EBCD
One of the IC code, ASCII code, BCD code, etc. is defined.

データ長指定部はデータの長さを示し、アドレス指定部
はデータが主記憶装置1に置かれている位置を示す。
The data length specification section indicates the length of the data, and the address specification section indicates the location where the data is placed in the main memory device 1.

本実施例でのデータA,Bは共に文字データで、外部コ
ードがJISコードである場合を示している。
In this embodiment, data A and B are both character data, and the external code is a JIS code.

変換テーブル3は1語8ビツト、容量256語の通常の
例えばICメモリで構成され、内部コードと異なる外部
コードに対して1つづつ備えられる。
The conversion table 3 is composed of a conventional IC memory having a capacity of 256 words and 8 bits per word, and one for each internal code and one for an external code different from the other.

そして、通常の計算機において、1つの文字は8ビツト
で構成されているため、8ビツトの内部コードをアドレ
スとしてアクセスした時に、上記256語の8ビツトの
各語がその内部コードに対応する外部コードになるよう
にビツトパターンを形成している。本実施例での変換テ
ーブル3は内部コードをJISコードへ変換する規則を
規定している。実杓浦1御手段4はレジスタ、加減算器
、マイクロプログラムメモリ等から成るマイクロプログ
ラムで制御された通常のデータ処理ユニツトで一連のマ
イクロ命令列により主記憶装置1から機械語命令を読み
出し、命令で指定させるデータ記述子を貯蔵装置2から
取り出し、更に読み出された記述子に従つて主記憶装置
1からデータを取り出し、それらのデータを用いて命令
で規定される処理を実行する。
In a normal computer, one character consists of 8 bits, so when an 8-bit internal code is accessed as an address, each of the 256 8-bit words mentioned above becomes the external code corresponding to that internal code. The bit pattern is formed so that Conversion table 3 in this embodiment defines rules for converting internal codes into JIS codes. The control means 4 of Jitsukiura 1 is an ordinary data processing unit controlled by a microprogram consisting of registers, adders/subtractors, microprogram memory, etc. It reads machine language instructions from the main memory 1 by a series of microinstructions, and executes the instructions. A data descriptor to be specified is retrieved from the storage device 2, data is retrieved from the main memory device 1 according to the read descriptor, and the processing specified by the instruction is executed using the data.

命令実行中で、例えば上記比較命令に遭遇すると、デー
タAおよびBのデータ記述子中のコードセツト指定部を
調べる。
When, for example, the above-mentioned comparison instruction is encountered during instruction execution, the code set specification sections in the data descriptors of data A and B are checked.

処理している計算機自身のコードセツト(内部コード)
はハードウエア組み込み又は内部レジスタによる設定等
により規定されるので、データ記述子中のコードセツト
指定部とそれらとを比較することにより前記データAお
よびBが内部コードと異なるかを判定する。内部コード
と異なる時は8ビツトの文字の列から成るデータを前記
変換テーブルを介して外部コードへ変換した後、所定の
比較操作が行なわれる。従つて上記実施例ではデータA
,BはJISコードであるために現在内部コードで表現
されたデータを変換テーブル3を用いてJISコードへ
戻した後、通常の文字列比較が行なわれる。以上の実施
例を用いた本発明の説明から明らかなように、本発明を
使用したデータ処理装置では内部コードと異なる外部コ
ードのデータに対する処理が効率よく行なわれ、上記目
的が達成される。
Code set (internal code) of the processing computer itself
Since these are defined by hardware incorporation or settings by internal registers, it is determined whether the data A and B are different from the internal code by comparing them with the code set designation section in the data descriptor. If the code is different from the internal code, the data consisting of a string of 8-bit characters is converted to the external code via the conversion table, and then a predetermined comparison operation is performed. Therefore, in the above example, data A
, B are JIS codes, the data currently expressed in the internal code is returned to the JIS code using the conversion table 3, and then normal character string comparison is performed. As is clear from the description of the present invention using the above embodiments, a data processing device using the present invention efficiently processes data of an external code different from an internal code, and achieves the above object.

以上は本発明の一実施例に過ぎない。図において、デー
タ記述子は機械語命令と分離されているが、機械語命令
の1部になることもできる。図において、変換テーブル
2は1つしか持たないが必要に応じて複数個備える形式
であつてもよい。本実施例では変換を必要とする命令か
否かはマイクロプログラムにより決められているが、変
換を必要とする命令を定義する手段(例えば通常のメモ
リやレジスタ)を用いることもできる。
The above is just one embodiment of the present invention. In the figure, the data descriptor is separated from the machine language instruction, but it can also be part of the machine language instruction. In the figure, only one conversion table 2 is provided, but a plurality of conversion tables 2 may be provided if necessary. In this embodiment, whether or not an instruction requires conversion is determined by a microprogram, but means (for example, ordinary memory or registers) for defining instructions that require conversion may also be used.

【図面の簡単な説明】[Brief explanation of the drawing]

図は本発明の一実施例を示すプロツク図で、1は機械語
命令列を貯える主記憶装置、2はデータ記述子を格納す
る貯蔵装置、3は変換テーブル、4は実行制御手段であ
る。
The figure is a block diagram showing one embodiment of the present invention, in which 1 is a main memory for storing machine language instruction sequences, 2 is a storage device for storing data descriptors, 3 is a conversion table, and 4 is an execution control means.

Claims (1)

【特許請求の範囲】[Claims] 1 外部文字コードを一度内部文字コードへ変換して処
理するデータ処理方式において、外部での文字コードを
指定する外部文字コード指定部を備えたデータ記述子と
、内部文字コードを指定された外部文字コードへ変換す
る文字コード変換テーブルと、特定命令の実行に際し、
前記データ記述子で指定された内部文字コードと異なる
外部文字コードのデータを前記文字コード変換テーブル
に従つて外部文字コードへ変換した後、所定の処理を行
なう実行制御手段とを具備し、1つの命令内で文字コー
ドの変換と前記所定の処理を行えることを特徴とするデ
ータ処理装置。
1 In a data processing method that converts an external character code to an internal character code and processes it, a data descriptor with an external character code specification section that specifies an external character code and an external character whose internal character code is specified are used. Character code conversion table to convert to code and when executing specific commands,
an execution control means for converting data of an external character code different from the internal character code specified by the data descriptor into an external character code according to the character code conversion table, and then performing a predetermined process; A data processing device characterized by being capable of converting a character code and performing the predetermined processing within an instruction.
JP6419276A 1976-06-01 1976-06-01 data processing equipment Expired JPS5926060B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6419276A JPS5926060B2 (en) 1976-06-01 1976-06-01 data processing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6419276A JPS5926060B2 (en) 1976-06-01 1976-06-01 data processing equipment

Publications (2)

Publication Number Publication Date
JPS52147034A JPS52147034A (en) 1977-12-07
JPS5926060B2 true JPS5926060B2 (en) 1984-06-23

Family

ID=13250946

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6419276A Expired JPS5926060B2 (en) 1976-06-01 1976-06-01 data processing equipment

Country Status (1)

Country Link
JP (1) JPS5926060B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0512014A (en) * 1991-07-01 1993-01-22 Kubota Corp Data processor
JP2830884B2 (en) * 1992-02-06 1998-12-02 日本電気株式会社 Input / output conversion method for multiple character code sets

Also Published As

Publication number Publication date
JPS52147034A (en) 1977-12-07

Similar Documents

Publication Publication Date Title
JPS6124729B2 (en)
JPS62237522A (en) Information processor
JPS5926060B2 (en) data processing equipment
GB1525857A (en) Computer system
JPS60254324A (en) Exponential range expansion for floating-point
JPS6266330A (en) Loading device for instruction counter
JPS6355636A (en) Data processing system
US4031514A (en) Addressing system in an information processor
JPS5856040A (en) Data processor
JPS6134620A (en) Inputting method to computer
JPS62121532A (en) Data retrieving method
JPH0585925B2 (en)
JP2772124B2 (en) Dictionary search method
JPH0336643A (en) Data processing method
JPS60220468A (en) Vector arithmetic control system
JPS63282527A (en) Addressing circuit for information processor
JPH01130237A (en) Information processor
JPS5846439A (en) Program editing method of computer
JPS58109932A (en) Comparison and arithmetic device for electronic computer
Moskowitz TOPSI 2. 0.
JPS6260033A (en) Microprocessor control system
JPS6350731B2 (en)
Fent A crash course in technotalk, bit by byte
JPH02136256A (en) Font mode setting system of data processing apparatus
JPH02144670A (en) Comparator