JPH0441382B2 - - Google Patents

Info

Publication number
JPH0441382B2
JPH0441382B2 JP19897184A JP19897184A JPH0441382B2 JP H0441382 B2 JPH0441382 B2 JP H0441382B2 JP 19897184 A JP19897184 A JP 19897184A JP 19897184 A JP19897184 A JP 19897184A JP H0441382 B2 JPH0441382 B2 JP H0441382B2
Authority
JP
Japan
Prior art keywords
function code
address
computer
data
extraction device
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
JP19897184A
Other languages
Japanese (ja)
Other versions
JPS6175928A (en
Inventor
Toshio Yasuda
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 JP19897184A priority Critical patent/JPS6175928A/en
Publication of JPS6175928A publication Critical patent/JPS6175928A/en
Publication of JPH0441382B2 publication Critical patent/JPH0441382B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、計算機システムの処理プログラムに
おいて行われる機能コードの抽出処理に関し、特
に計算機に接続された機能コード抽出装置に行わ
せる機能コード抽出処理の方式に関する。
Detailed Description of the Invention (Industrial Application Field) The present invention relates to a function code extraction process performed in a processing program of a computer system, and particularly to a function code extraction process performed by a function code extraction device connected to a computer. Regarding the method of

(従来の技術) 従来、斯かる方式においては計算機システムの
内部でプログラム命令により入力されたデータ列
を、1バイトづつ機能コードであるか否かをチエ
ツクし、アドレスを求めて抽出するものが採用さ
れていた。上記方式においては、入力データ列が
長くなるとかなりの時間にわたつてプログラムの
内部で実行がループすることになつていた。
(Prior art) Conventionally, in such a method, a data string inputted by a program instruction inside a computer system is checked one byte at a time to see if it is a function code, and the address is determined and extracted. It had been. In the above method, when the input data string becomes long, the execution loops within the program for a considerable amount of time.

(発明が解決しようとする問題点) 従つて、上記の方式においては実行時間が長
く、この間に該当プログラムより優先度の低い他
のプログラムが全然実行できず、マルチ処理を行
えないと云う欠点があつた。
(Problems to be Solved by the Invention) Therefore, the above method has the disadvantage that the execution time is long, during which time other programs with lower priority than the program in question cannot be executed at all, and multi-processing cannot be performed. It was hot.

本発明の目的は、機能コード抽出装置にあらか
じめ任意の機能コード列テーブルとして与え、そ
の後に機能コードを含むデータ列を計算機から機
能コード抽出装置へ送り、データ列中の機能コー
ドの格納されている相対アドレスを抽出し、さら
にその相対アドレス群を外部装置から読込んでデ
ータ列中の機能コード格納位置を求めることによ
り上記欠点を解決し、マルチ処理ができるように
構成した機能コード抽出方式を提供することにあ
る。
An object of the present invention is to provide an arbitrary function code string table to a function code extraction device in advance, and then send a data string containing the function code from a computer to the function code extraction device, and to store the function codes in the data string. To provide a function code extraction method that solves the above drawbacks by extracting relative addresses and further reading the group of relative addresses from an external device to determine the function code storage position in a data string, and is configured to perform multi-processing. There is a particular thing.

(問題点を解決するための手段) 本発明による機能コード抽出方式は機能コード
抽出装置と計算機とを具備し、相対アドレスを使
用して処理を実行するように構成して実現したも
のであり、機能コード抽出装置は機能コードテー
ブルと、データ入力バツフアと、アドレスセーブ
エリアとから成るものである。
(Means for Solving the Problems) The function code extraction method according to the present invention is realized by comprising a function code extraction device and a computer, and configured to execute processing using relative addresses. The function code extraction device consists of a function code table, a data input buffer, and an address save area.

機能コードテーブルは、機能コード列を参照の
ため格納しておくためのものである。データ入力
バツフアは、機能コードを含むデータ列を計算機
から受取つて逐次格納するためのものである。ア
ドレスセーブエリアは、データ入力バツフアに送
出されたデータ列のうちで1バイトデータを受取
るごとに機能コードであるか否かをチエツクし
て、機能コードであれば相対アドレスを格納する
ためのものである。
The function code table is used to store function code strings for reference. The data input buffer is for receiving data strings including function codes from the computer and storing them sequentially. The address save area is for checking whether or not it is a function code each time one byte of data is received from the data string sent to the data input buffer, and storing the relative address if it is a function code. be.

いつぽう計算機は、上記の処理を実行するため
機能コード抽出処理プログラムを格納するための
ものである。
The computer is used to store a function code extraction processing program for executing the above processing.

そして、前記機能コード抽出処理プログラムは
前記アドレスセーブエリアの内容を引取り、この
アドレス内容を使用してデータ列のなかから機能
コード格納位置を知り、次の処理を行うものであ
る。
The function code extraction processing program receives the contents of the address save area, uses the address contents to find the function code storage position from the data string, and performs the next process.

(実施例) 次に、本発明について図面を参照して詳細に説
明する。
(Example) Next, the present invention will be described in detail with reference to the drawings.

第1図は、本発明に関係する計算機および機能
コード抽出装置を示すブロツク図である。第1図
において、1は計算機、2は機能コード抽出装置
である。計算機1における11,12はそれぞれ
第1および第2の処理プログラムであり、機能コ
ード抽出装置2における21は機能コードアドレ
ステーブル、22はデータ入力バツフア、23は
アドレスセーブエリアである。
FIG. 1 is a block diagram showing a computer and a function code extraction device related to the present invention. In FIG. 1, 1 is a computer and 2 is a function code extraction device. In the computer 1, 11 and 12 are first and second processing programs, respectively. In the function code extraction device 2, 21 is a function code address table, 22 is a data input buffer, and 23 is an address save area.

最初に、第1の処理プログラム11から機能コ
ード抽出装置2に機能コード列を送出する。機能
コード列は256バイトで構成され、1バイト目が
コード0016に対応し、2バイト目がコード0116
対応し、以降256バイト目がコードFF16に対応す
るが、0016〜FF16までのコードのうち各バイトの
0ビツト目が〓1”であるようなコードが機能コ
ードであり、1バイト文字を示すものである。
First, a function code string is sent from the first processing program 11 to the function code extraction device 2. The function code string consists of 256 bytes, the 1st byte corresponds to the code 00 16 , the 2nd byte corresponds to the code 01 16 , and the subsequent 256th byte corresponds to the code FF 16 , but from 00 16 to FF 16 . Among the above codes, the code in which the 0th bit of each byte is 〓1'' is a function code, and indicates a 1-byte character.

機能コード抽出装置2では、機能コード列を自
身の機能コードテーブル21へ格納する。次に、
第1の処理プログラム11によつて機能コードを
含むデータ列を計算機1から機能コード抽出装置
2へ送出する。
The function code extraction device 2 stores the function code string in its own function code table 21. next,
A data string including a function code is sent from the computer 1 to the function code extraction device 2 by the first processing program 11 .

この時点で第1の処理プログラム11はI/O
完了待ちとなり、第2の処理プログラム12に制
御が渡り、第2の処理プログラム12の実行が開
始される。機能コード抽出装置2ではデータをデ
ータ入力バツフア22に格納すると共に、1バイ
トデータを受取るごとに機能コードテーブル21
のベースアドレスをチエツクすると共に機能コー
ドであるか否かをチエツクし、機能コードであれ
ばアドレスセーブエリア23の順次、相対アドレ
ス格納する。
At this point, the first processing program 11
Waiting for completion, control is passed to the second processing program 12, and execution of the second processing program 12 is started. The function code extraction device 2 stores the data in the data input buffer 22, and also stores the data in the function code table 21 every time it receives 1 byte data.
It checks the base address of the code and also checks whether it is a function code. If it is a function code, the relative address is stored in the address save area 23 in sequence.

上記の処理を入力データ列が存在しなくなるま
で繰返し、終了したところで第1の処理プログラ
ム11に通知する。
The above processing is repeated until there are no more input data strings, and the first processing program 11 is notified when the processing is completed.

第1の処理プログラム11では機能コード抽出
終了が通知されたならば、機能コード抽出装置2
よりアドレスセーブエリア23の内容を引取る。
In the first processing program 11, when the completion of function code extraction is notified, the function code extraction device 2
The contents of the address save area 23 are taken over.

次に、第1の処理プログラム11では引取つた
アドレス群を使用し、データ列のなかから短時間
で機能コード格納位置を知り、次の処理を行うこ
とができる。
Next, the first processing program 11 uses the retrieved address group to quickly find the function code storage position from the data string, and can perform the next process.

(発明の効果) 本発明には以上説明したように、機能コード抽
出装置にあらかじめ任意の機能コード列を与え、
その後に機能コードを含むデータ列を機能コード
抽出装置へ送り、データ列中の機能コードの格納
されている相対アドレスを抽出し、さらにその相
対アドレス群を外部装置から読込んでデータ列中
の機能コード格納位置を求めることにより、機能
コード抽出処理時間の短縮、およびマルチ処理が
可能となると云う効果がある。
(Effects of the Invention) As explained above, the present invention includes providing an arbitrary function code string to the function code extraction device in advance,
After that, the data string containing the function code is sent to the function code extraction device, the relative address where the function code is stored in the data string is extracted, and the relative address group is read from an external device to extract the function code in the data string. Determining the storage location has the effect of shortening the function code extraction processing time and making multi-processing possible.

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

第1図は、本発明に関係する計算機および機能
コード抽出装置の一実施例を示すブロツク図であ
る。第2図は、第1図に示す機能コードテーブ
ル、データ入力バツフア、ならびにアドレスセー
ブエリアの内容を示す説明図である。 1……計算機、2……機能コード抽出装置、1
1,12……プログラム、21……機能コードテ
ーブル、22……データ入力バツフア、23……
アドレスセーブエリア。
FIG. 1 is a block diagram showing an embodiment of a computer and a function code extraction device related to the present invention. FIG. 2 is an explanatory diagram showing the contents of the function code table, data input buffer, and address save area shown in FIG. 1. 1...Calculator, 2...Function code extraction device, 1
1, 12...Program, 21...Function code table, 22...Data input buffer, 23...
Address save area.

Claims (1)

【特許請求の範囲】[Claims] 1 機能コード抽出装置と計算機とを具備して構
成することにより実現した機能コード抽出方式で
あつて、前記機能コード抽出装置が機能コード列
を参照のためあらかじめ格納しておくための機能
コードテーブルと、前記機能コードを含むデータ
列を前記計算機から受取つて遂次格納するための
データ入力バツフアと、前記テータ入力バツフア
に送出された前記データ列のうちで1バイトのデ
ータを受取るごとに機能コードであるか否かをチ
エツクして、前記機能コードであれば相対アドレ
スを格納するためのアドレスセーブエリアとを具
備し、且つ、前記計算機が前記機能コード抽出処
理プログラムを格納するための手段を具備し、前
記機能コード抽出処理プログラムは前記アドレス
セーブエリアの内容を引取り、このアドレス内容
を使用してデータ列のなかから機能コード格納位
置を知り、次の処理を行うことを特徴とする機能
コード抽出方式。
1. A function code extraction method realized by comprising a function code extraction device and a computer, wherein the function code extraction device includes a function code table and a function code table for storing function code strings in advance for reference. , a data input buffer for receiving and successively storing a data string including the function code from the computer; and a function code input buffer for each byte of data received from the data string sent to the data input buffer. and an address save area for checking whether the function code exists and storing a relative address if the function code exists, and means for the computer to store the function code extraction processing program. , the function code extraction processing program receives the contents of the address save area, uses the address contents to find the function code storage position from the data string, and performs the following processing. method.
JP19897184A 1984-09-21 1984-09-21 Function code extracting system Granted JPS6175928A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19897184A JPS6175928A (en) 1984-09-21 1984-09-21 Function code extracting system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19897184A JPS6175928A (en) 1984-09-21 1984-09-21 Function code extracting system

Publications (2)

Publication Number Publication Date
JPS6175928A JPS6175928A (en) 1986-04-18
JPH0441382B2 true JPH0441382B2 (en) 1992-07-08

Family

ID=16399967

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19897184A Granted JPS6175928A (en) 1984-09-21 1984-09-21 Function code extracting system

Country Status (1)

Country Link
JP (1) JPS6175928A (en)

Also Published As

Publication number Publication date
JPS6175928A (en) 1986-04-18

Similar Documents

Publication Publication Date Title
US4992931A (en) Data alignment correction apparatus for properly formatting data structures for different computer architectures
JPS6028015B2 (en) information processing equipment
EP0062658A1 (en) STACK STORAGE FOR A DATA PROCESSING SYSTEM.
EP0240606A2 (en) Pipe-line processing system and microprocessor using the system
JPH0441382B2 (en)
JPS5890247A (en) Pipeline controlling system of information processor
JPS5890244A (en) data processing equipment
JPS6236258B2 (en)
JP3130798B2 (en) Bus transfer device
JPS62254237A (en) Inter-printer type branch instruction executing system
JPH0766032B2 (en) Test system
JPS63217433A (en) Control system for execution of program
JPS6231378B2 (en)
JPS58159149A (en) Instruction code conversion method
JPS6047616B2 (en) information processing equipment
JPS61199126A (en) Microprogram check system
JPH04104349U (en) Microprogram information processing device
JPH04215148A (en) Programmable controller
JPS59205645A (en) Information transfer device
JPH05158754A (en) System for recording cpu execution command history
JPS62219139A (en) Instruction executing system
JPH08297583A (en) Interrupt handling apparatus and method thereof
JPS6146562A (en) Operation processing system of array element
JPS59140508A (en) Executing method of programmable controller
JPS6036614B2 (en) information processing equipment

Legal Events

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