JPS60220423A - Processing system of flml instruction - Google Patents
Processing system of flml instructionInfo
- Publication number
- JPS60220423A JPS60220423A JP7728884A JP7728884A JPS60220423A JP S60220423 A JPS60220423 A JP S60220423A JP 7728884 A JP7728884 A JP 7728884A JP 7728884 A JP7728884 A JP 7728884A JP S60220423 A JPS60220423 A JP S60220423A
- Authority
- JP
- Japan
- Prior art keywords
- register
- bit
- flml
- original data
- instruction
- 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.)
- Granted
Links
Abstract
Description
【発明の詳細な説明】
(1)発明の技術分野
本発明は多数ビットの原データについてFLML命令に
よるビット“1”位置を短時間に検出できるFLML命
令処理方式に関する。DETAILED DESCRIPTION OF THE INVENTION (1) Technical Field of the Invention The present invention relates to an FLML instruction processing method that can detect a bit "1" position by an FLML instruction in a short time in original data of many bits.
(2) 従来技術と問題点
大型の汎用計算機では原データについて左側から順次K
“1″“0”を判定し、最初に“1″と判定したビット
の位置をめる処理の必要なことがある。この処理を行な
う命令をFLM命令とい5゜FLMはFind Lef
t Mo5t One の略語である。従来のFLM処
理は32ビツト(4バイト〕を格納する汎用レジスタに
原データを格納し、レジスタの内容について“1”“0
”を順次に判定することであり、本処理では、32ビツ
ト固定の原データのみが扱われていた。したがって処理
すべき原データが32ビツト以上となる場合が多くなっ
た現在では、単一命令による32ビツト毎の処理を繰返
す必要があり、そのためデータの格納とリセットを繰返
す処理時間が無駄となり、またFLM命令による処理と
して最初に“1″と判定したビットの位置をめるため特
別な計算用処理を設けておく必要があった。(2) Conventional technology and problems In large general-purpose computers, the original data is
It may be necessary to perform processing to determine whether a bit is "1" or "0" and to position the bit that was initially determined to be "1". The command that performs this process is called the FLM command.5゜FLM is Find Lef
It is an abbreviation of tMo5tOne. In conventional FLM processing, original data is stored in a general-purpose register that stores 32 bits (4 bytes), and the contents of the register are "1" and "0."
”, and in this process, only fixed 32-bit original data was handled. Therefore, now that the original data to be processed is often 32 bits or more, it is now possible to use a single instruction. It is necessary to repeat the processing for every 32 bits, which wastes the processing time of repeatedly storing and resetting data. Also, as processing by the FLM instruction, special calculations are required to locate the bit that is initially determined to be "1". It was necessary to set up a process for this purpose.
(3)発明の目的
本発明の目的は前述の欠点を改善し、記憶装置上の可変
長の原デーダについてFLML命令を適用し、短時間に
処理できるデータ処理方式を提供することkある。FL
MLとはFin6Laf’t Moat One Lo
ng の略語である。(3) Object of the Invention An object of the present invention is to improve the above-mentioned drawbacks and to provide a data processing method that can process variable-length original data on a storage device in a short time by applying FLML instructions. FL
What is ML?Fin6Laf't Moat One Lo
It is an abbreviation of ng.
(4)発明の構成
前述の目的を達成するための本発明の構成は、記憶装置
に格納されている可変長の原デーク忙ついて、格納アド
レスと判定すべき範囲長により指定されるアドレスのデ
ータを判定用レジスタに転送し、左方のビットから順次
に“1″“0”を判定すると同時に、4口”の場合に内
容を所定値更新して゛°0″判定回数を計数するレジス
タを設け、判定用レジスタの内容がすべて“0”のとき
順次格納アドレスを更新して対応する記憶装置の原デー
タを判定用レジスタに格納し、ビット“1”を判定した
とき判定回数を計数するレジスタの計数値により最も左
方にあるビット“1”の位置をめることである。(4) Structure of the Invention The structure of the present invention to achieve the above-mentioned object is to store data at an address specified by a range length to be determined as a storage address by using a variable-length original data stored in a storage device. is transferred to the judgment register, and the bits on the left side are sequentially judged as ``1'' and ``0'', and at the same time, in the case of 4 bits, the contents are updated to a predetermined value, and a register is provided to count the number of times ``0'' is judged. , when the contents of the judgment register are all “0”, the storage address is updated sequentially and the original data of the corresponding storage device is stored in the judgment register, and when the bit “1” is judged, the register that counts the number of judgments is The purpose is to locate the leftmost bit "1" based on the count value.
(5) 発明の実施例
第1図は本発明の一実施例を示す構成因でMEMは原デ
ータの格納され℃いる記憶装置、CPUは中央処理装置
を示し、DTは原データ、FLPはFLML命令実行部
、R1〜Rnは汎用レジスタ、r 1 * r 2 g
・・・rnはFLML命令実行部のレジスタ、TLはデ
ータ伝送路を示す。今中央処理装置CPU iC対しF
LML命令がFLML RI R2D(R3)
の形式で与えられたとすると、FLML命令笑行部FL
Pは次のように動作する。(5) Embodiment of the invention FIG. 1 shows the components of an embodiment of the invention. MEM is a storage device in which original data is stored, CPU is a central processing unit, DT is original data, and FLP is FLML. Instruction execution unit, R1 to Rn are general-purpose registers, r 1 * r 2 g
. . . rn is a register of the FLML instruction execution unit, and TL is a data transmission path. Now central processing unit CPU iC F
If the LML command is given in the form FLML RI R2D (R3), then the FLML command execution part FL
P operates as follows.
(−(1(13)で示されるアドレスにオフセット値り
を加え、その値をアドレスレジスタr2に設定する。Add an offset value to the address indicated by (-(1 (13)) and set the value in address register r2.
(口l R2で示される原データの長さを範囲用レジス
タ(r5)に設定する。(1) Set the length of the original data indicated by R2 in the range register (r5).
(ハ) カウンタレジスタ(r4)に零を設定する。(c) Set the counter register (r4) to zero.
に) アドレスレジスタ(rl)で示される記憶装置の
内容1バイトをビット捜査レジスタ(rl)に転送する
。) Transfer one byte of the contents of the storage device indicated by the address register (rl) to the bit search register (rl).
(ホ) ビット捜査レジスタ(rl)の左側から順次に
ビットが“D″か“1”かを判定、する。(e) Determine whether the bit is "D" or "1" sequentially from the left side of the bit investigation register (rl).
(へ) もしビットが“0”であればカウンタレジスタ
(r4)を「1」歩進し、ビット判定を続行する。(to) If the bit is "0", the counter register (r4) is incremented by "1" and bit determination is continued.
(ト) ビット捜査レジスタ(rl)の全データ(8ヒ
ツト〕の捜査が終了するとアドレスレジスフ (12)
を「1」歩進じ、範囲用レジスタ(r3)を「1」減算
する。このとき範囲用レジスタ(r3)が「o」でなげ
ればに)に戻る、もし範囲用レジスタ(r3)がrOJ
のときは、コンディションコードCcに捜査した全ビッ
トが“0”の旨の値Ca=“0”を設定して処理を終了
する。(g) When the investigation of all data (8 hits) in the bit investigation register (rl) is completed, the address register (12)
is incremented by "1" and the range register (r3) is subtracted by "1". At this time, if the range register (r3) is set to "o", then the range register (r3) returns to rOJ.
In this case, the condition code Cc is set to a value Ca="0" indicating that all bits investigated are "0", and the process is terminated.
(ト)捜査レジスタ(rl)におけるビットが“1”と
なっているときは、カウンタレジスタ(r4)の値をレ
ジスタR1に転送し、コンディションコードCC=“1
”として処理を終了する。(g) When the bit in the investigation register (rl) is “1”, the value of the counter register (r4) is transferred to the register R1, and the condition code CC is “1”.
” and the process ends.
以上の動作を7′c1−チャートで示すと第2図のよう
になる。この処理で判るように単一のFLML命令によ
り原データの多数ビットについて処理することができる
。従来は単一の命令により処理できるビット長が限られ
ていた。The above operation is shown in FIG. 2 using a 7'c1-chart. As seen in this process, multiple bits of original data can be processed with a single FLML instruction. Conventionally, the bit length that could be processed by a single instruction was limited.
(6)発明の効果
このようにして本発明によると長いデータであっても、
より短時間に捜査することができる。例えばページ単位
のリアル空間を論理空間に割当てたか否か、ディスク上
の論理的に区切った空間が使用中か否か等ビットマツプ
として管理されるデータ忙対し、FLML命令を適用す
ることでシステムの性能向上をはかることができる。(6) Effect of the invention In this way, according to the present invention, even if the data is long,
Investigations can be conducted in a shorter time. For example, by applying FLML commands, you can improve system performance by checking whether the real space in units of pages has been allocated to logical space, whether the logically divided space on the disk is in use, etc. You can make improvements.
第1図は本発明の一実施例の構成を示す囚、第2図は第
1図の動作フローチャートを示す。
MgM・・・記憶装置 DT・・・原データCPU・・
・中央処理装置 FLP・・・FLML命令実行部R1
〜Rn・・・汎用レジスタ
r 1 g r2 e ”” rH=・FLM命令実°
行部のレジスタTL・−・データ伝送路
CC・・−コンディションコード
特許出願人 富士通株式会社(ほか1名〕代理人 弁理
土鈴木宋祐
第1図FIG. 1 shows the configuration of an embodiment of the present invention, and FIG. 2 shows an operation flowchart of FIG. 1. MgM...Storage device DT...Original data CPU...
・Central processing unit FLP...FLML instruction execution unit R1
~Rn...General-purpose register r 1 g r2 e "" rH=・FLM instruction execution°
Row section register TL --- Data transmission line CC --- Condition code Patent applicant: Fujitsu Limited (and one other person) Agent: Sosuke Tsuchi Suzuki, patent attorney Figure 1
Claims (1)
格納アドレスと判定すべき範囲長により指定されるアド
レスのデータを判定用レジスタに転送し、左方のビット
から順次圧“1”“0#を判定すると同時に、90″の
場合に内容を所定値更新して“0″判定回数を計数する
レジスタを設け、判定用レジスタの内容がすべて“0″
のとき順次格納アドレスを更新して対応する記レジスタ
の計数値により最も左方にあるビット“1″の位置をめ
ることを特徴とするFLML命令処理方式。Regarding the variable length original data stored in the storage device,
The data at the address specified by the storage address and the range length to be determined is transferred to the determination register, and the pressure is determined sequentially from the left bit as "1" or "0#", and at the same time, if it is 90", the content is set to a predetermined value. A register is provided to update and count the number of “0” judgments, and the contents of the judgment register are all “0”.
An FLML instruction processing method characterized in that when , the storage address is sequentially updated and the position of the leftmost bit "1" is set based on the count value of the corresponding register.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP7728884A JPS60220423A (en) | 1984-04-17 | 1984-04-17 | Processing system of flml instruction |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP7728884A JPS60220423A (en) | 1984-04-17 | 1984-04-17 | Processing system of flml instruction |
Publications (2)
Publication Number | Publication Date |
---|---|
JPS60220423A true JPS60220423A (en) | 1985-11-05 |
JPH0377533B2 JPH0377533B2 (en) | 1991-12-10 |
Family
ID=13629684
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP7728884A Granted JPS60220423A (en) | 1984-04-17 | 1984-04-17 | Processing system of flml instruction |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS60220423A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9716928B2 (en) | 2012-08-29 | 2017-07-25 | Fujitsu Limited | Communications apparatus, system, and communications method |
US10936939B2 (en) | 2018-02-27 | 2021-03-02 | Fujitsu Limited | Operation processing apparatus, information processing apparatus and information processing method |
-
1984
- 1984-04-17 JP JP7728884A patent/JPS60220423A/en active Granted
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9716928B2 (en) | 2012-08-29 | 2017-07-25 | Fujitsu Limited | Communications apparatus, system, and communications method |
US10936939B2 (en) | 2018-02-27 | 2021-03-02 | Fujitsu Limited | Operation processing apparatus, information processing apparatus and information processing method |
Also Published As
Publication number | Publication date |
---|---|
JPH0377533B2 (en) | 1991-12-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3878851B2 (en) | Linked list DMA descriptor architecture | |
TWI499909B (en) | Hierarchical immutable content-addressable memory processor | |
Houdek et al. | IBM System/38 support for capability-based addressing | |
JP2008512797A (en) | Deterministic finite automaton (DFA) processing | |
US6449706B1 (en) | Method and apparatus for accessing unaligned data | |
JPH05509189A (en) | Method of operating a computer system and memory management device in a computer system | |
JPS63163930A (en) | Alignment correction system | |
US4648033A (en) | Look-aside buffer LRU marker controller | |
JPS60220423A (en) | Processing system of flml instruction | |
US5951676A (en) | Apparatus and method for direct loading of offset register during pointer load operation | |
US20040044885A1 (en) | Performing repeat string operations | |
KR20200123799A (en) | Apparatus and method for accessing metadata when debugging a device | |
US4212058A (en) | Computer store mechanism | |
US6243800B1 (en) | Computer | |
JPH05134930A (en) | Memory protecting device | |
US6401144B1 (en) | Method and apparatus for managing data transfers between peripheral devices by encoding a start code in a line of data to initiate the data transfers | |
JPS6285372A (en) | Comparing and swapping system in multi-processor system | |
EP4425497A1 (en) | Ram test with parity error detection and handling | |
JPS58208982A (en) | Store buffer | |
JPS60134937A (en) | Address extension device | |
JPS6010336B2 (en) | Address comparison method | |
JPS63187349A (en) | Memory device | |
JPS63251838A (en) | Instruction extracting device | |
JPS5840273B2 (en) | Data search | |
JPH0433059B2 (en) |