JPH03204028A - Central processing unit - Google Patents

Central processing unit

Info

Publication number
JPH03204028A
JPH03204028A JP1341501A JP34150189A JPH03204028A JP H03204028 A JPH03204028 A JP H03204028A JP 1341501 A JP1341501 A JP 1341501A JP 34150189 A JP34150189 A JP 34150189A JP H03204028 A JPH03204028 A JP H03204028A
Authority
JP
Japan
Prior art keywords
instruction
operand
program
address
value
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.)
Pending
Application number
JP1341501A
Other languages
Japanese (ja)
Inventor
Tomohisa Ishikawa
智久 石川
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP1341501A priority Critical patent/JPH03204028A/en
Publication of JPH03204028A publication Critical patent/JPH03204028A/en
Pending legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)

Abstract

PURPOSE:To attain the effective use of the recording capacity by forming the next address based on the branching destination address when the arithmetic result of an arithmetic circuit which shows the satisfaction of conditions is applied to an addressing circuit at the time of execution of a conditional branching instruction. CONSTITUTION:An S5 selector 15 is provided into an addressing circuit. The selector 15 receives an SL field and value '1' from a program ROM 1 and a control logic part 3 respectively and works based on the control signal given from the part 3. In executing a condition checking/branching instruction, the SL field is selected as long as the conditions are satisfied. Then the SL field value is added to the present value of the address of a program ROM 1 via an adder 4. Thus the next address is formed to the ROM 1. Otherwise the selector 15 selects the value '1' received from the part 3 and actuates the adder 4 as a program counter. In such a constitution, the number of program steps related to the branching processing in particular can be extremely decreased.

Description

【発明の詳細な説明】 [発明の技術分野] この発明は中央演算処理装置に関し、特に小規校なCP
U(中央演算処理袋N)における分岐処理技術に関する
[Detailed Description of the Invention] [Technical Field of the Invention] The present invention relates to a central processing unit, and in particular to a central processing unit for small school computers.
This invention relates to branch processing technology in U (central processing unit N).

[従来技術とその問題点] 一般に条件付分岐命令では、演算を行い、演算結果から
条件の成立の有無をチエツクして、条件成立時に分岐先
のプログラムアドレスに移行する。これを実現するのに
、従来の中央演算処理装置では、2つの命令、即ち、演
算を行うための命令と演算結果から条件付分岐を行う命
令とを分けて行う必要があり、それぞれの命令語をプロ
グラムメモリに分けて記憶する必要があった。
[Prior art and its problems] In general, a conditional branch instruction performs an operation, checks whether a condition is satisfied based on the result of the operation, and moves to the branch destination program address when the condition is established. To achieve this, in conventional central processing units, it is necessary to separately execute two instructions: an instruction to perform an operation and an instruction to perform a conditional branch from the operation result, and each instruction word needed to be stored separately in program memory.

従来例を第4図から第9図を参照して説明する。第4図
の回路ブロック図において、プログラムを記憶するプロ
グラムROMIから出力される命令語はOPで示すオペ
コードと、FU、FL、SU、SLで示すオペランドの
フィールドから成る。FU、FLは第1オペランドの上
位と下位をそれぞれ示し、SU、SLは第2オペランド
の上位と下位を示す。命令語に含まれるオペレーション
デコーダ2で解読され、制御論理部3を通して各回路(
5,8〜lO,13,14等)の動作が制御される。
A conventional example will be explained with reference to FIGS. 4 to 9. In the circuit block diagram of FIG. 4, an instruction word output from a program ROMI that stores a program consists of an operation code indicated by OP and operand fields indicated by FU, FL, SU, and SL. FU and FL indicate the upper and lower parts of the first operand, respectively, and SU and SL indicate the upper and lower parts of the second operand. The operation contained in the instruction word is decoded by the decoder 2 and sent to each circuit (
5, 8 to lO, 13, 14, etc.) are controlled.

プログラムROMIをアドレッシングする回路は通常時
は、プログラムアドレス現在値に制御論理部3からの1
を加算するプログラムカウンタとしての加算器4と、オ
ペランドFU、SU、FL、SLで示すアドレスに分岐
するときに、加算器4の出力に加えてそのアドレスを選
択するS4のセレクタ5と、セレクタ5の出力をラッチ
するL3ラッチ6とから構成される。
Normally, the circuit for addressing the program ROMI inputs 1 from the control logic unit 3 to the current value of the program address.
an adder 4 as a program counter that adds up , a selector 5 of S4 that selects the address in addition to the output of the adder 4 when branching to the address indicated by the operands FU, SU, FL, and SL; The L3 latch 6 latches the output of the L3 latch 6.

演算用メモリとしてのRAM7に対するアドレッシング
回路は、プログラムROMIからのフィルドFU、SU
を選択するSlセレクタ8とプログラムROM1からの
フィールドFU、SUを選択するS2セレクタによって
構成される。第1オペランドのタイミングで、セレクタ
8.9はそれぞれ、FU、とFLを選択してRAM7を
アドレッシングし、第2オペランドのタイミングでセレ
クタ8.9はそれぞれSU、SLを選択してRAM7を
アドレッシングする。
The addressing circuit for RAM 7 as a calculation memory uses fields FU and SU from the program ROMI.
, and an S2 selector that selects fields FU and SU from the program ROM 1. At the timing of the first operand, selectors 8.9 select FU and FL, respectively, to address RAM 7, and at the timing of the second operand, selectors 8.9 select SU and SL, respectively, to address RAM 7. .

RAM7に対する演算回路はLlデータラッチ11、L
2デークラッチ、セレクタ13及びALU14から成る
。RAM7から出力される第1オペランドのデータはラ
ッチ11にラッチされ、ALU14のA入力となりRA
M7から出力される第2オペランドのデータはラッチ1
2にラッチされ、ALU14のB入力となる。プログラ
ムROMIから第2オペランドを即値(イミデエート値
)とする命令が出力されるときは、第2オペランドの下
位SLがゲートlOを通ってセレクタ13により、ラッ
チ12出力に代えて選択され、ALU14のB入力とな
る。ALU14の演算結果データのRAM7に戻される
。また、ALU14の演算結果におけるZフラグの状況
はオペレーションデコーダ2の解読結果とともに制御論
理部3に入力され、分岐のチエツク等に利用される。
The arithmetic circuit for RAM 7 is Ll data latch 11, L
It consists of a 2-day clutch, a selector 13 and an ALU 14. The data of the first operand output from the RAM 7 is latched by the latch 11, and becomes the A input of the ALU 14, and the RA
The second operand data output from M7 is latch 1.
2 and becomes the B input of the ALU 14. When an instruction that sets the second operand as an immediate value is output from the program ROMI, the lower SL of the second operand is selected by the selector 13 instead of the latch 12 output through the gate IO, and the ALU 14's B It becomes input. The calculation result data of the ALU 14 is returned to the RAM 7. Further, the status of the Z flag in the calculation result of the ALU 14 is inputted to the control logic unit 3 together with the decoding result of the operation decoder 2, and is used for branch checking and the like.

第7図は、命令(X+Y +X)に対する第4図の回路
の動作を示したものである。RAMアドレス又は第1オ
ペランドFU、FLで定められ、RAMアドレスYは第
2オペランドSU、SLで定められる。TIのタイミン
グで、RAM7が第2オペランド示すアドレスYで指定
され、そのT−タがラッチ12にラッチされる。
FIG. 7 shows the operation of the circuit of FIG. 4 in response to the instruction (X+Y+X). The RAM address or first operands FU and FL are determined, and the RAM address Y is determined by the second operands SU and SL. At the timing of TI, the RAM 7 is designated by the address Y indicated by the second operand, and its T-ta is latched into the latch 12.

T2のタイミングでRAM7が第1オペランドの示すア
ドレスXで指定され、そのデータXがラッチ11にラッ
チされる。次のT3のタイミングで、データXとYをA
LU14で加算し、加算結果をRAM7のXアドレスに
書き込んで命令の実行が終了する。
At timing T2, the RAM 7 is designated by the address X indicated by the first operand, and the data X is latched into the latch 11. At the next T3 timing, data X and Y are
The LU 14 performs the addition, writes the addition result to the X address of the RAM 7, and ends the execution of the instruction.

第8図は命令(x+3→X)に対する動作を示したもの
である。この場合は、TIのタイミングで第2オペラン
ドの下位5L(=3)がゲートlOを介してセレクタ1
3に選択される。T2タイミングでilオペランドの示
すRAM7のアドレスXが指定され、そのデータXがラ
ッチ11にセットされる。T3でALU14で加算が実
行され、結果がRAM7のアドレスXに書き込まれる。
FIG. 8 shows the operation for the instruction (x+3→X). In this case, at the timing of TI, the lower 5L (=3) of the second operand is transferred to the selector 1 via the gate IO.
3 is selected. At timing T2, the address X of the RAM 7 indicated by the il operand is specified, and the data X is set in the latch 11. At T3, the ALU 14 executes the addition, and the result is written to address X in the RAM 7.

第9図は命令(X/4)に対するこの命令は第1オペラ
ンドXと即値である第2オペランド4とを比較し、X−
4=0の条件が成立するかどうかを調べるためのもので
ある。T2のタイミングまでは第8図の命令と同様に動
作し、T3のタイミングで、ALU14にてデータXか
ら即値が減算され、その減算結果に従って、ゼロフラグ
Z、キャリーフラグCOの状態が定まる。
FIG. 9 shows that this instruction for instruction (X/4) compares the first operand X and the immediate second operand 4, and
This is to check whether the condition 4=0 holds true. The instruction operates in the same way as the instruction shown in FIG. 8 up to the timing T2, and at the timing T3, the immediate value is subtracted from the data X in the ALU 14, and the states of the zero flag Z and carry flag CO are determined according to the result of the subtraction.

第5図は分岐命令を含むフローを示し、第6図はこのフ
ローを実現するために、上述した従来例のプログラムR
OMIに記憶される、プログラムの内容を示す。従来の
場合、第6図に示されるように条件分岐における条件フ
ラグ状78を得るための条件検査命令語(X/4)の次
アドレスに、JMP(n+4)というRAM7のアドレ
ス(n+4)にジャンプするジャンプ命令語を格納する
必要がある。
FIG. 5 shows a flow including a branch instruction, and FIG. 6 shows a program R of the above-mentioned conventional example to realize this flow.
Shows the contents of the program stored in OMI. In the conventional case, as shown in FIG. 6, a jump is made to the address (n+4) of the RAM 7 called JMP (n+4), which is the next address of the condition check instruction word (X/4) to obtain the conditional flag 78 in the conditional branch. It is necessary to store the jump instruction word.

この様に、従来技術では条件付の分岐処理ごとに、2つ
の命令語を必要とし、それによってプログラムROMの
容量が増大する問題があった。
As described above, in the prior art, two instruction words are required for each conditional branch processing, which has the problem of increasing the capacity of the program ROM.

[発明の目的] したがって、この発明の目的は、条件付分岐命令のため
のプログラムステップ数を減少させた中央演算処理袋δ
を提供することである。
[Object of the Invention] Therefore, an object of the present invention is to provide a central processing bag δ that reduces the number of program steps for conditional branch instructions.
The goal is to provide the following.

[発明の構成、作用] 上記の目的を達成するため、この発明によれば、プロブ
ラムを記憶するプログラムメモリ手段と、上記プログラ
ムメモリ手段をアドレッシングするアドレッシング回路
手段と、上記アドレッシング回路手段にてアドレッシン
グされた上記プログラムメモリの記憶場所から読み出さ
れた命令語を構成するオペコードとオペランドのうちオ
ペコード解読する命令解読回路手段、上記命令解読回路
手段の解読結果に従って動作して、上記オペランドの演
算を実行する演算、回路手段と、を有する中央演算処理
装置において、上記プログラムメモリ手段は、条件付分
岐命令の命令語として、オペコードと第1オペランドと
、この第1オペランドの即値である第2オペランドとと
もに、第2オペランドを即値としたときに残るフィール
ドに分岐先を示すジャンプ値とを記憶する手段を有し、
」二記アドレッシング回路手段は、上記条件付分岐命令
の実行時に上記演算回路手段から条件成立を示す演算結
果が与えられたときに、上記ジャンプ値の示す分岐先ア
ドレスによって上記プログラムメモリ手段に対する次ア
ドレスを形成する手段が提供される。
[Structure and operation of the invention] In order to achieve the above object, according to the present invention, there is provided a program memory means for storing a program, an addressing circuit means for addressing the program memory means, and a program memory means for addressing the program by the addressing circuit means. instruction decoding circuit means for decoding the opcodes and operands constituting the instruction word read from the storage location of the program memory; operating according to the decoding result of the instruction decoding circuit means to execute the operation of the operands; In the central processing unit, the program memory means stores an operation code, a first operand, and a second operand which is an immediate value of the first operand as an instruction word of a conditional branch instruction. It has means for storing a jump value indicating a branch destination in the field that remains when the two operands are made into immediate values,
” 2. The addressing circuit means determines the next address for the program memory means according to the branch destination address indicated by the jump value when the arithmetic circuit means receives an operation result indicating that the condition is met during execution of the conditional branch instruction. A means is provided for forming.

この構成によれば、従来、プログラムメモリ手段に1条
件検査のための命令語とジャンプ命令語を分けて記憶さ
せて、実行していた条件付分岐処理と同様の処理を、条
件検査命令とジャンプ命令とを複合化したl命令、Jを
実行することによって達成できる。したがって、プログ
ラム記憶手段の記憶容量を効率的に利用できる。
According to this configuration, the instruction word for one condition check and the jump instruction word are stored separately in the program memory means, and the same processing as the conditional branch processing that has been executed can be performed using the conditional check instruction and the jump instruction word. This can be achieved by executing the l instruction, J, which is a composite of the instructions. Therefore, the storage capacity of the program storage means can be used efficiently.

[実施例] 以下、図面を参照して、この発明の詳細な説明する。[Example] Hereinafter, the present invention will be described in detail with reference to the drawings.

第1図に実施例に係る中央演算処理装置の回路の回路ブ
ロック図を示す。なお、従来例の第4図と同様な要素に
は同一番号を付し、その説明を省略する。第4図と異な
る点としてプログラムROMIに対するアドレスを生成
するアドレッシング回路が第1に挙げられる。即ち、ア
ドレッシング回路中に35セレクタ15が付加される。
FIG. 1 shows a circuit block diagram of a central processing unit circuit according to an embodiment. Note that the same elements as those in FIG. 4 of the conventional example are given the same numbers, and their explanations will be omitted. The first difference from FIG. 4 is the addressing circuit that generates an address for the program ROMI. That is, a 35 selector 15 is added to the addressing circuit.

このセレクタ15はプログラムROMIからSLフィー
ルドと制御論理部3からの値“l”とを受け、制御論理
部3からのM御信号に従って動作し、後述する条件検査
兼分岐命令の実行時において、条件が成立するときはS
Lフィールドを選択し、加算器4において、プログラム
ROMアドレス現在値にSLフィールド値(分岐先のア
ドレスのデスプレースメント値を示す)が加算されて、
プログラムROMIに対する次アドレスが形成されるよ
うにする。その他の場合は、セレクタ15は制御論理部
3から値“1”を選択し、加算器4をプログラムカウン
タとして動作させる。
This selector 15 receives the SL field from the program ROMI and the value "l" from the control logic section 3, operates according to the M control signal from the control logic section 3, and when executing the condition check/branch instruction described later, holds, then S
The L field is selected, and the adder 4 adds the SL field value (indicating the displacement value of the branch destination address) to the current value of the program ROM address.
Allow the next address for the program ROMI to be formed. In other cases, the selector 15 selects the value "1" from the control logic section 3 and causes the adder 4 to operate as a program counter.

第2図は上述した第5図に示すフローのために、実施例
のプログラムROMIに記憶されるプログラムを示す、
アドレスnにある命+ (x/4+3)が条件検査と分
岐命令とを複合化した命令である。第6図の従来例に比
ベプログラムステップ数が1減少していることがわかる
。この複合命令の一般形式は第3図に示するように(X
/n+m)で表わされる。
FIG. 2 shows a program stored in the program ROMI of the embodiment for the flow shown in FIG. 5 described above.
The instruction +(x/4+3) at address n is an instruction that combines a conditional check and a branch instruction. It can be seen that the number of program steps is reduced by one compared to the conventional example shown in FIG. The general format of this compound instruction is shown in Figure 3 (X
/n+m).

ここに、Xは第1オペランドであり、命令語のFUフィ
ールドとFLフィールドによりその上位と下位が規定さ
れる。nはSLフィールドで規定される6mはSUフィ
ールドで規定される。命令(X/n+m)の意味は、第
1オペランドXで示されるRAM7アドレスのデータか
ら第2オペランドの即値nを引いた値がゼロかどうか検
査し、ゼロならば、ROMIの現アドレス値にジャンプ
値mを加えてROMIの分岐先アドレスを得る。
Here, X is the first operand, and its upper and lower parts are defined by the FU field and FL field of the instruction word. n is defined by the SL field, and 6m is defined by the SU field. The meaning of the instruction (X/n+m) is to check whether the value obtained by subtracting the immediate value n of the second operand from the data at the RAM7 address indicated by the first operand X is zero, and if it is zero, jump to the current address value of ROMI. Add the value m to obtain the ROMI branch address.

というものである。第2図の場合には、分岐先アドレス
は命令語(V3+3)を記憶するアドレス(n+3)と
なる。
That is what it is. In the case of FIG. 2, the branch destination address is the address (n+3) that stores the instruction word (V3+3).

この複合命令(x / 4 + 3 )を例にとって、
第1図の回路の動作を説明すると、T1のタイミングで
、第2オペランドSLフイールド即値4がゲート10、
セレクタ13を通してALU14のB入力に入力される
0次のT2のタイミングで、第1オペランドのFUとF
Lフィールドにある値XでRAM7をアドレッシングし
、そのデータ値Xがラッチ11を介してAUL14のA
入力に入力される。次のT3のタイミングで(x−4)
の演算が実行され、そのゼロフラグZの状態がその演算
結果として定められる。
Taking this compound instruction (x / 4 + 3) as an example,
To explain the operation of the circuit shown in FIG. 1, at timing T1, the second operand SL field immediate value 4 is set to
At the timing of the 0th order T2 input to the B input of the ALU 14 through the selector 13, the first operands FU and F
RAM 7 is addressed with the value X in the L field, and the data value
entered into the input. At the next T3 timing (x-4)
The calculation is executed, and the state of the zero flag Z is determined as the result of the calculation.

一方、ROMIのアドレッシング回路の55セレクタ1
5にはSUフィールドにあるジャンプ値°°3″がその
一方の入力に加えられている。更に、制御論理部3には
T3のタイミングで得られたゼロフラグZの信号が入力
される。このゼロフラグZに対応する制御信号(図示せ
ず)が制御論理部3からセレクタ15に加えらえる。こ
の結果、セレクタ15はゼロフラグZ=1(X−40)
ときにはSUフィールドのジャンプ値“3”を選択し、
ゼロフラグZ=O(X−4≠0)のときにはル制御論理
部3から入力データ“l“を!択する。したがって、ゼ
ロフラグZ値によって条件成立の右共に従って、加算器
4で(n + 1 )または(n+3)のアドレス演算
が行われ、次のサイクルでアドレス(n+ 1)の命仝
V1+1またはアドレス(n+3)の命令v3+3が実
行されることになる。
On the other hand, 55 selector 1 of the ROMI addressing circuit
5 has the jump value °°3'' in the SU field added to one of its inputs.Furthermore, the control logic unit 3 receives the zero flag Z signal obtained at the timing T3.This zero flag A control signal (not shown) corresponding to Z is applied from the control logic section 3 to the selector 15. As a result, the selector 15 sets the zero flag Z=1 (X-40).
Sometimes, select the jump value "3" of the SU field,
When the zero flag Z=O (X-4≠0), the input data “l” is sent from the control logic unit 3! Choose. Therefore, depending on whether the condition is satisfied by the zero flag Z value, the adder 4 performs address operation on (n+1) or (n+3), and in the next cycle, the address (n+1) is either V1+1 or address (n+3). ) instruction v3+3 will be executed.

S3CのCX土n→X)の欄に示すように、第2オペラ
ンドを即値nとする即値命令では、SUフィールドは使
用されない。実施例ではこのSUフィールド複合命令で
ある条件付分岐命令において、ジャンプ値mのフィール
ドとして使用しているので、命令語のビット数を従来よ
り太きくとる必要はない。
As shown in the column of S3C (CX (n→X)), the SU field is not used in an immediate instruction whose second operand is an immediate value n. In the embodiment, this SU field is used as a field for the jump value m in a conditional branch instruction which is a compound instruction, so there is no need to increase the number of bits of the instruction word compared to the conventional one.

[発明の効果] 以上、詳細に説明したように、この発明では、プログラ
ムメモリ手段に、条件付分岐命令の複合的な命令語とし
て、オペコードと条件検査用の第1オペランドと、この
第1オペランドの即値である第2オペランドとともに、
第2オペランドを即値としたときに残るフィールドに分
岐先アドレスのためのジャンプ値とを記憶する手段を設
け、プログラムメモリ手段に対するアドレッシング回路
手段に、上記条件付分岐命令の実行時に演算回路手段か
らの条件成立を示す演算結果が与えられたトキニ上記ジ
ャンプ値の示す分岐先アドレスによって上記プログラム
メモリ手段に対する次アドレスを形成する手段を設けた
ので、プログラムメモリ手段の記憶容量を効率的に利用
でき、特に分岐処理に係るプログラムステップ数を大幅
に減少させることができる。
[Effects of the Invention] As described in detail above, in the present invention, the program memory means stores an operation code, a first operand for condition checking, and this first operand as a composite instruction word of a conditional branch instruction. With the second operand being the immediate value of
Means for storing a jump value for a branch destination address in a field remaining when the second operand is an immediate value is provided, and the addressing circuit means for the program memory means is provided with a jump value for a branch destination address when the second operand is an immediate value. Since the means for forming the next address for the program memory means based on the branch destination address indicated by the jump value given the calculation result indicating that the condition is satisfied is provided, the storage capacity of the program memory means can be used efficiently. The number of program steps related to branch processing can be significantly reduced.

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

第1図は実施例に係る中央演算処理装置のブロック図、 第2図は第1図の実施例のプログラムROMに記憶され
るプログラム例を示す図、 第3図は第1図の実施例で使用される命令の例とオペラ
ンドのフィールド割当を示す図、第4図は従来例に係る
中央演算処理装置のブロック図、 第5図は分岐処理と含むフローの例を示す図、第6図は
第5図のフローに対応して第4図のプログラムROMに
記憶されるプログラムを示す図、 第7図は、 第8図、 第9図は84図の動作を説 明するのに用いた図である。 1・・・・・・プログラムROM、 2・・・・・・オペレーショ ンデコーダ、 7・・・・・・RAM、 4・・・・・・ALU、 4・・・・・・加算器、 5・・・・・・セレクタ。 特 許 出 願 人 カシオ計算機株式会社 アドレス 内容 X/4+3 n+1 1 +1 n+2 2 +2 n+3 V3 +3 第 図 第 図 第 5 図 アドレス 内容 X/4 n+1 JMP (n+4) n+2 Vl+1 n+3 v2 +2 n+4 第 図 X+Y+X RAMアドレス ALU入力 ALU出力 x+Y x+Y X+3→X I 2 3 RAMアドレス BUS内容 S[=3 ALU出力 X+3 X+3 第 図 X/4 X−4 Zeroフラグ判断 I 2 3 RAMアドレス US S( =4 ALU出カ −4 −4 L4 carregまたは Zero発生 オペランド FU、[X SU   アキ SL   n=4 第 図
1 is a block diagram of the central processing unit according to the embodiment, FIG. 2 is a diagram showing an example of a program stored in the program ROM of the embodiment of FIG. 1, and FIG. 3 is a block diagram of the central processing unit of the embodiment of FIG. 1. FIG. 4 is a block diagram of a central processing unit according to a conventional example; FIG. 5 is a diagram showing an example of a flow including branch processing; FIG. A diagram showing a program stored in the program ROM of FIG. 4 corresponding to the flow of FIG. 5, FIG. 7 is a diagram used to explain the operation of FIG. 8, and FIG. be. 1...Program ROM, 2...Operation decoder, 7...RAM, 4...ALU, 4...Adder, 5. ·····selector. Patent Applicant Casio Computer Co., Ltd. Address Contents X/4+3 n+1 1 +1 n+2 2 +2 n+3 V3 +3 Figure Figure 5 Figure Address Contents Input ALU output x+Y x+Y X+3→X I 2 3 RAM address BUS content S[=3 ALU output X+3 4 L4 carreg or Zero generation operand FU, [X SU Aki SL n=4 Fig.

Claims (1)

【特許請求の範囲】  プロブラムを記憶するプログラムメモリ手段と、 上記プログラムメモリ手段をアドレッシングするアドレ
ッシング回路手段と、 上記アドレッシング回路手段にてアドレッシングされた
上記プログラムメモリの記憶場所から読み出された命令
語を構成するオペコードとオペランドのうちオペコード
を解読する命令解読回路手段と、 上記命令解読回路手段の解読結果に従って動作して、上
記オペランドの演算を実行する演算回路手段と、 を有する中央演算処理装置において、上記プログラムメ
モリ手段は、条件付分岐命令の命令語として、オペコー
ドと第1オペランドと、この第1オペランドの即値であ
る第2オペランドとともに、第2オペランドを即値とし
たときに残るフィールドに分岐先を示すジャンプ値とを
記憶する手段を有し、 上記アドレッシング回路手段は、上記条件付分岐命令の
実行時に上記演算回路手段から条件成立を示す演算結果
が与えられたときに、上記ジャンプ値の示す分岐先アド
レスによって上記プログラムメモリ手段に対する次アド
レスを形成する手段を有することを特徴とする中央演算
処理装置。
[Scope of Claims] Program memory means for storing a program; addressing circuit means for addressing the program memory means; and instruction words read from a storage location of the program memory addressed by the addressing circuit means. A central processing unit comprising: instruction decoding circuit means for decoding an opcode among the constituent opcodes and operands; and arithmetic circuit means operating according to the decoding result of the instruction decoding circuit means to execute the operation of the operand, The program memory means stores, as an instruction word of a conditional branch instruction, an operation code, a first operand, a second operand which is an immediate value of the first operand, and a branch destination in a field that remains when the second operand is set as an immediate value. The addressing circuit means stores a jump value indicated by the jump value, and the addressing circuit means stores a jump value indicated by the jump value when the arithmetic circuit means receives an operation result indicating that the condition is met during execution of the conditional branch instruction. A central processing unit characterized in that it comprises means for forming a next address for said program memory means by a previous address.
JP1341501A 1989-12-30 1989-12-30 Central processing unit Pending JPH03204028A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1341501A JPH03204028A (en) 1989-12-30 1989-12-30 Central processing unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1341501A JPH03204028A (en) 1989-12-30 1989-12-30 Central processing unit

Publications (1)

Publication Number Publication Date
JPH03204028A true JPH03204028A (en) 1991-09-05

Family

ID=18346550

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1341501A Pending JPH03204028A (en) 1989-12-30 1989-12-30 Central processing unit

Country Status (1)

Country Link
JP (1) JPH03204028A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014223329A (en) * 2014-06-20 2014-12-04 株式会社大都技研 Game board
JP2015016369A (en) * 2014-10-20 2015-01-29 株式会社大都技研 Game machine
JP2015097870A (en) * 2015-02-27 2015-05-28 株式会社大都技研 Game machine

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014223329A (en) * 2014-06-20 2014-12-04 株式会社大都技研 Game board
JP2015016369A (en) * 2014-10-20 2015-01-29 株式会社大都技研 Game machine
JP2015097870A (en) * 2015-02-27 2015-05-28 株式会社大都技研 Game machine

Similar Documents

Publication Publication Date Title
KR100327778B1 (en) Data processing method using multiple instruction sets
US5740461A (en) Data processing with multiple instruction sets
US4616313A (en) High speed address calculation circuit for a pipeline-control-system data-processor
US4774688A (en) Data processing system for determining min/max in a single operation cycle as a result of a single instruction
US4539635A (en) Pipelined digital processor arranged for conditional operation
JPH03116233A (en) System and method for processing instruc- tion of data processor
US5682531A (en) Central processing unit
US5684983A (en) Microprocessor executing multiple register transfer operations with a single instruction with derivation of destination register numbers from source register
US5742801A (en) Microprocessor to which additional instructions are added and instructions addition method thereof
US5860152A (en) Method and apparatus for rapid computation of target addresses for relative control transfer instructions
US20210117189A1 (en) Reduced instruction set processor based on memristor
US4598358A (en) Pipelined digital signal processor using a common data and control bus
US5349671A (en) Microprocessor system generating instruction fetch addresses at high speed
US4991086A (en) Microprogram controlled microprocessor having a plurality of internal buses and including transfer register designation system
JPH03204028A (en) Central processing unit
JPH034936B2 (en)
CA1155231A (en) Pipelined digital processor arranged for conditional operation
JPH0222413B2 (en)
US6282632B1 (en) Information processor having duplicate operation flags
US6996702B2 (en) Processing unit with cross-coupled ALUs/accumulators and input data feedback structure including constant generator and bypass to reduce memory contention
JPH07110769A (en) Vliw type computer
US5142636A (en) Memory bank address calculation with reduced instruction execution cycles
JP2731618B2 (en) emulator
JPS6116334A (en) Data processor
JP2851192B2 (en) Addition / subtraction processing method with carry in parallel processing unit