JPH0332817B2 - - Google Patents
Info
- Publication number
- JPH0332817B2 JPH0332817B2 JP59228574A JP22857484A JPH0332817B2 JP H0332817 B2 JPH0332817 B2 JP H0332817B2 JP 59228574 A JP59228574 A JP 59228574A JP 22857484 A JP22857484 A JP 22857484A JP H0332817 B2 JPH0332817 B2 JP H0332817B2
- Authority
- JP
- Japan
- Prior art keywords
- cycle
- detection circuit
- output
- moves
- 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.)
- Expired - Lifetime
Links
Landscapes
- Debugging And Monitoring (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
- Devices For Executing Special Programs (AREA)
Description
【発明の詳細な説明】
(産業上の利用分野)
本発明は、モトローラ社製16ビツトマイクロプ
ロセツサMC68010において、セグメントを指定
した転送命令(以下MOVES命令という)の実行
を正しく逆アセンブルするためにその転送命令の
実行サイクルを検出し、逆アセンブルを行う場合
に使用する信号を生成する転送命令検出回路に関
するものである。DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention is designed to correctly disassemble the execution of a transfer instruction (hereinafter referred to as MOVES instruction) that specifies a segment in the 16-bit microprocessor MC68010 manufactured by Motorola. The present invention relates to a transfer instruction detection circuit that detects the execution cycle of the transfer instruction and generates a signal used when performing disassembly.
(従来の技術)
MC68010は、同社製のMC68000と同じく、プ
ログラム参照(プロセツサから出されるフアンク
シヨン・コードFC0〜FC2をデコードすることに
よつて識別される)のサイクルにフエツチ(プロ
グラム参照によつて、命令コードをプロセツサ内
部に取込むこと)される命令コードと、実行サイ
クル数を管理することによつて、プロセツサの動
きの逆アセンブルが可能である。(Prior art) Like the MC68000 manufactured by the same company, the MC68010 has a fetish (identified by program reference, which is identified by decoding function codes FC0 to FC2 issued from the processor) in cycles of program reference (identified by decoding function codes FC0 to FC2 issued from the processor). By taking the instruction code into the processor and managing the number of execution cycles, it is possible to disassemble the operations of the processor.
(発明が解決しようとする問題点)
MC68010では、MOVES命令において、プロ
セツサ内部のレジスタの値によつてその実行サイ
クル中のメモリリードまたはメモリライトの一方
あるいはその両方について、そのサイクルをデー
タ参照ではなくプログラム参照として動作させる
ことが可能であるが、この場合、プログラム参照
のサイクルにフエツチされる命令コードが管理不
能となるため逆アセンブルが異常になるという問
題があつた。(Problem to be Solved by the Invention) In the MC68010, in the MOVES instruction, depending on the value of a register inside the processor, memory read and/or memory write during the execution cycle is performed instead of data reference. Although it is possible to operate as a program reference, in this case, there is a problem that disassembly becomes abnormal because the instruction code fetched in the program reference cycle becomes unmanageable.
本発明の目的は、この様な点に鑑み、MOVES
命令のメモリリード,メモリライトのサイクルを
検出し、そのサイクルを強制的にデータ参照のサ
イクルとする信号を生成し、MOVES命令の実行
を正しく逆アセンブルするために利用される信号
を得ることのできる転送命令検出回路を提供する
ことにある。 In view of these points, the purpose of the present invention is to
Detects memory read and write cycles of instructions, generates a signal that forces the cycle to be a data reference cycle, and obtains the signal used to correctly disassemble the execution of the MOVES instruction. An object of the present invention is to provide a transfer command detection circuit.
(問題点を解決するための手段)
この様な目的を達成するために本発明では、
MOVES命令を検出し、その何サイクル目がメモ
リリードあるいはメモリライトのサイクルかを判
断する手段と、命令実行サイクルを計数するカウ
ンターと、前記手段およびカウンターの出力から
強制的にデータ参照にすべきサイクルを示す信号
を作る回路と、この回路の出力を用いて、フアン
クシヨン・コードをデータ参照のコードにする回
路を具備し、MOVES命令のメモリリードあるい
はメモリライトのサイクルをデータ参照のサイク
ルを表す信号を作り出力するように構成したこと
を特徴とする。(Means for solving the problem) In order to achieve such an objective, the present invention has the following features:
A means for detecting a MOVES instruction and determining which cycle is a memory read or memory write cycle, a counter for counting instruction execution cycles, and a cycle to be forcibly made into a data reference from the output of the means and the counter. It is equipped with a circuit that generates a signal indicating a data reference cycle, and a circuit that uses the output of this circuit to convert a function code into a data reference code. It is characterized by being configured to create and output.
(実施例)
以下図面を用いて本発明を詳しく説明する。第
1図は本発明に係る転送命令検出回路の一実施例
を示す要部構成図である。図において、1は
MOVES命令検出回路で、MC68010から出力さ
れるデータをデータバスDB(D0〜D15の16ビツ
ト)経由で受け、MOVES命令を検出するとその
実行サイクルの期間MOVES#2〜#5の信号を
出力する。2はバスサイクル・カウンターで、
MC68010側から出力されるクロツクCLK
(MC68010のリード(read)およびライト
(write)動作に同期させて生成されたパルスで1
サイクルに1回出力される。)を計数することに
より命令実行のサイクル数を計数する。(Example) The present invention will be explained in detail below using the drawings. FIG. 1 is a block diagram of main parts showing an embodiment of a transfer command detection circuit according to the present invention. In the figure, 1 is
The MOVES instruction detection circuit receives data output from the MC68010 via the data bus DB (16 bits D0 to D15), and when a MOVES instruction is detected, outputs MOVES #2 to #5 signals during the execution cycle. 2 is the bus cycle counter,
Clock CLK output from MC68010 side
(1 pulse generated in synchronization with read and write operations of MC68010)
Output once per cycle. ) to count the number of cycles of instruction execution.
3はMOVES命令検出回路1とバスサイクル・
カウンター2の出力から、データ参照のサイクル
を示すデータ信号を作るデータ参照検出回路であ
る。 3 is MOVES instruction detection circuit 1 and bus cycle.
This is a data reference detection circuit that generates a data signal indicating a data reference cycle from the output of the counter 2.
4はフアンクシヨン・コード変換回路(以下
FC変換回路と略す)で、MC68010から与えられ
るフアンクシヨン・コードFC0〜FC2のデータを
データ参照検出回路3の出力データに応じて一部
変換し、FC′0〜FC′2として出力する。 4 is a function/code conversion circuit (hereinafter referred to as
The FC conversion circuit partially converts the data of the function codes FC0 to FC2 given from the MC68010 according to the output data of the data reference detection circuit 3, and outputs them as FC'0 to FC'2.
このような構成における動作を第2図を参照し
て次に説明する。MOVES命令が3サイクルの実
行サイクルを有し、その第2サイクルがメモリリ
ード、ライトサイクルの場合であり、プログラム
参照としてメモリアクセスを行つた場合の動作に
ついて述べる。MOVES命令検出回路1では、
MOVES命令を検出すると、その実行サイクルの
期間そのアドレスツシングモードと扱うデータの
サイズに応じてMOVES#2〜#5の信号を出力
する。第2図の場合2サイクル目にメモリアクセ
スがあるので、同図ハに示すようにMOVES#2
のみをHigレベル(以下“H”という)にする。 The operation in such a configuration will be explained next with reference to FIG. The MOVES instruction has three execution cycles, the second cycle of which is a memory read/write cycle, and the operation when memory access is performed as a program reference will be described. In the MOVES instruction detection circuit 1,
When a MOVES instruction is detected, signals MOVES #2 to #5 are output during the execution cycle depending on the addressing mode and the size of data to be handled. In the case of Figure 2, there is a memory access in the second cycle, so as shown in Figure C, MOVES#2
set to High level (hereinafter referred to as "H").
一方、バスサイクル・カウンター2はクロツク
CKLを計数し、その値をデータ参照検出回路3
に与える。バスサイクル・カウンター2はクロツ
クCKLの立上がりでカウントアツプし、命令実
行のラストサイクルにクリアされる。 On the other hand, bus cycle counter 2 is clocked.
Count CKL and refer to the value as data detection circuit 3
give to Bus cycle counter 2 counts up at the rising edge of clock CKL and is cleared in the last cycle of instruction execution.
データ参照検出回路3はMOVES命令検出回路
1の出力とバスサイクル・カウンター2の出力か
らデータ参照のサイクルを示すデータ信号を作
る。本実施例の場合にはMOVES#2が出力され
ているので第2サイクル目、すなわち、第2図の
ニに示すように、カウンター2の値が1となつて
いる区間にデータ信号を出力する。FC変換回路
4はデータ参照検出回路3から与えられるデータ
信号が“H”の時に、第2図ホないしヌに示すよ
うに、FC′0を“H”、FC′1を“L”(Lowレベル)
に変え、他のFC′0およびFC′2はFO0とFC2をそ
のままの形でで出力する。この様なFC′0〜FC′2
はデータ参照のコードであり、この信号を利用す
ることによつて逆アセンブラを正しく行うことが
できる。 The data reference detection circuit 3 generates a data signal indicating a data reference cycle from the output of the MOVES command detection circuit 1 and the output of the bus cycle counter 2. In the case of this embodiment, since MOVES #2 is output, the data signal is output in the second cycle, that is, in the section where the value of counter 2 is 1, as shown in Figure 2 D. . When the data signal given from the data reference detection circuit 3 is "H", the FC conversion circuit 4 sets FC'0 to "H" and FC'1 to "L" (Low), as shown in FIG. level)
, and the other FC′0 and FC′2 output FO0 and FC2 as they are. Such FC′0~FC′2
is a data reference code, and by using this signal, disassembling can be performed correctly.
なお、以上の動作はMOVES命令が3サイクル
の実行サイクルの場合であるが、3サイクル以外
の場合についても同様にメモリリードないしメモ
リライトのサイクルにおいてデータ参照を示す
FC信号を発生させることができる。 Note that the above operation is for the case where the MOVES instruction has 3 execution cycles, but in cases other than 3 cycles, data reference is similarly indicated in the memory read or memory write cycle.
Can generate FC signal.
このようにしてデータ参照を示す信号を作るこ
とができるため、MOVES命令も他の一般の命令
と同一の手法で逆アセンブルすることが可能とな
る。 Since a signal indicating data reference can be created in this way, the MOVES instruction can also be disassembled using the same method as other general instructions.
(発明の効果)
以上説明したように、本発明によれば、簡単な
回路により、MC68010のMOVES命令の逆アセ
ンブルを行うために必要な信号を容易に得ること
ができ、実用に供してその効果は大である。(Effects of the Invention) As explained above, according to the present invention, the signals necessary for disassembling the MOVES instruction of MC68010 can be easily obtained using a simple circuit, and the effects of the present invention can be achieved by using a simple circuit. is large.
第1図は本発明に係る転送命令検出回路の一実
施例を示す要部構成図、第2図は動作を説明する
ためのタイムチヤートである。
1…MOVES命令検出回路、2…バスサイク
ル・カウンター、3…データ参照検出回路、4…
フアンクシヨン・コード変換回路。
FIG. 1 is a main part configuration diagram showing an embodiment of a transfer command detection circuit according to the present invention, and FIG. 2 is a time chart for explaining the operation. 1... MOVES command detection circuit, 2... Bus cycle counter, 3... Data reference detection circuit, 4...
Function code conversion circuit.
Claims (1)
エツチされる命令コードを外部から管理すること
ができないように構成されたマイクロプロセツサ
から必要なデータを受け、セグメントを指定した
転送命令であることを検出しその何サイクル目が
メモリリードまたはメモリライトであるかを示す
信号を出力するMOVES検出回路と、前記マイク
ロプロセツサからのクロツクを計数しバスサイク
ルに対応した計数値を出力するバスサイクル・カ
ウンターと、前記MOVES検出回路の出力と前記
バスサイクル・カウンターの出力から強制的にデ
ータ参照にすべきサイクルを示す信号を作るデー
タ参照検出回路と、前記マイクロプロセツサから
出力されるフアンクシヨン・コードを前記データ
参照検出回路の出力信号に基づきデータ参照のコ
ードに変換するフアンクシヨン・コード変換回路
を具備し、前記フアンクシヨン・コード変換回路
より、セグメントを指定した転送命令のメモリリ
ードあるいはメモリライトのサイクルにはデータ
参照のサイクルとする信号が得られるようにした
ことを特徴とする転送命令検出回路。1 Receives the necessary data from the microprocessor, which is configured so that the fetched instruction code cannot be managed from outside while a transfer instruction that specifies a segment is being executed, and detects that the transfer instruction specifies a segment. a MOVES detection circuit that outputs a signal indicating which cycle is a memory read or memory write, and a bus cycle counter that counts clocks from the microprocessor and outputs a count value corresponding to the bus cycle. , a data reference detection circuit that generates a signal indicating a cycle to be forcibly made data reference from the output of the MOVES detection circuit and the output of the bus cycle counter; The function code conversion circuit converts the output signal of the reference detection circuit into a data reference code. A transfer command detection circuit is characterized in that a signal having a cycle of is obtained.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP59228574A JPS61107433A (en) | 1984-10-30 | 1984-10-30 | Transfer instruction detecting circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP59228574A JPS61107433A (en) | 1984-10-30 | 1984-10-30 | Transfer instruction detecting circuit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS61107433A JPS61107433A (en) | 1986-05-26 |
| JPH0332817B2 true JPH0332817B2 (en) | 1991-05-14 |
Family
ID=16878494
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP59228574A Granted JPS61107433A (en) | 1984-10-30 | 1984-10-30 | Transfer instruction detecting circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS61107433A (en) |
-
1984
- 1984-10-30 JP JP59228574A patent/JPS61107433A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS61107433A (en) | 1986-05-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5838896A (en) | Central processing unit for preventing program malfunction | |
| JP2993975B2 (en) | Central processing unit | |
| EP0240606A2 (en) | Pipe-line processing system and microprocessor using the system | |
| JPH0332817B2 (en) | ||
| JP3076044B2 (en) | Error information storage method for pipeline | |
| US5860155A (en) | Instruction decoding mechanism for reducing execution time by earlier detection and replacement of indirect addresses with direct addresses | |
| JPH01120638A (en) | Information processor | |
| JPS62279438A (en) | Tracking circuit | |
| JP3633747B2 (en) | Microprocessor program debugging device | |
| JP2812610B2 (en) | Pipeline control method | |
| JPS5880743A (en) | Fetch forecaster for microprocessor | |
| JPS6198445A (en) | Loop mode detecting circuit | |
| JPH054038Y2 (en) | ||
| JPH01231126A (en) | Information processor | |
| JP2981275B2 (en) | Programmable controller | |
| JP2979918B2 (en) | Interrupt detection circuit | |
| JPH0758464B2 (en) | Pipeline processing type information processing device | |
| JPH0371236A (en) | Error detecting system | |
| JPH01100638A (en) | Instruction retry control system | |
| JPS6255738A (en) | Data processor having program counter tracing mechanism | |
| JPS59106048A (en) | Microprocessor system | |
| JPH02268343A (en) | Instruction frequency measuring system | |
| JPH03156647A (en) | Watchdog timer | |
| JPH0340013A (en) | Central arithmetic processing unit | |
| JPS60193047A (en) | Mode checking system of microprogram |