JPH04199440A - CPU simulator - Google Patents
CPU simulatorInfo
- Publication number
- JPH04199440A JPH04199440A JP2333860A JP33386090A JPH04199440A JP H04199440 A JPH04199440 A JP H04199440A JP 2333860 A JP2333860 A JP 2333860A JP 33386090 A JP33386090 A JP 33386090A JP H04199440 A JPH04199440 A JP H04199440A
- Authority
- JP
- Japan
- Prior art keywords
- register
- length
- variable
- display format
- simulator
- 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
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
Description
【発明の詳細な説明】
産業上の利用分野
本発明は、可変長のレジスタ構成を有すると共に可変長
レジスタの長さを指定する手段を備えるCPUに対して
、その命令のシミュレーションを行い、可変長レジスタ
内のデータを表示するCPUシミュレータに関する。DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention simulates instructions for a CPU that has a variable-length register configuration and is provided with means for specifying the length of the variable-length register. The present invention relates to a CPU simulator that displays data in registers.
従来の技術
第3図は従来のCFIUシミュレータを示すブロック図
である。第3図において、1は図示しな0CPUの命令
のシミュレーションを行うシミュレータ部、2はこのシ
ミュレータ部1に接続され、可変長レジスタのレジスタ
長を指定するレジスタ長指定フラグである。3はこのレ
ジスタ長指定フラグに接続され、その状態を監視するレ
ジスタ長監視部、4は上記シミュレータ部1に接続され
、可変長レジスタ内のデータが書き込まれる可変長レジ
スタ用バッファであり、その大きさは可変長の範囲内で
の最大レジスタ長である。5はこの可変長レジスタ用バ
ッファ4に接続され、その内容を表示するレジスタ表示
部である。Prior Art FIG. 3 is a block diagram showing a conventional CFIU simulator. In FIG. 3, reference numeral 1 denotes a simulator section (not shown) for simulating instructions of an 0 CPU, and 2 is a register length designation flag connected to the simulator section 1 to designate the register length of a variable length register. 3 is a register length monitoring unit that is connected to this register length designation flag and monitors its status; 4 is a variable length register buffer that is connected to the simulator unit 1 and into which data in the variable length register is written; is the maximum register length within the variable length range. Reference numeral 5 denotes a register display section connected to this variable-length register buffer 4 and displaying its contents.
二の従来のCPUシミュレータの動作は次のようになる
。第3図において、シミュレータ部1がレジスタ長を指
定するCPUの命令をシミュレーションすると、レジス
タ長指定フラグ2の状態が設定される。シミュレータ部
1がレジスタの内容を読み/書きする命令をシミュレー
ションすると、レジスタ長指定フラグ2の状態を監視し
ているレジスタ長監視部3からの情報に従い、可変長レ
ジスタ用バッファ4の内容を指定されたレジスタ長分だ
け読み/書きする。レジスタ表示部5は、レジスタ用バ
ッファ4の内容を可変長の範囲内での最大レジスタ長分
を全て表示する。このようにして、上記従来のCPUシ
ミュレータは指定されたレジスタ長に関わらず、可変長
の範囲内での最大レジスタ長分だけ表示する。The operation of the second conventional CPU simulator is as follows. In FIG. 3, when the simulator unit 1 simulates a CPU instruction that specifies a register length, the state of a register length designation flag 2 is set. When the simulator unit 1 simulates an instruction to read/write the contents of a register, the contents of the variable-length register buffer 4 are specified according to information from the register length monitoring unit 3 that monitors the state of the register length specification flag 2. Read/write for the specified register length. The register display section 5 displays all the contents of the register buffer 4 corresponding to the maximum register length within the variable length range. In this manner, the conventional CPU simulator displays only the maximum register length within the variable length range, regardless of the specified register length.
発明が解決しようとする課題
しかしながら、上記従来のCPUシミュレータでは、可
変長レジスタのレジスタ長を最大長以外に指定しても、
最大レジスタ長分だけしかレジスタの内容を表示できな
いという問題があった。Problems to be Solved by the Invention However, in the conventional CPU simulator described above, even if the register length of the variable-length register is specified as a value other than the maximum length,
There was a problem in that the contents of the register could only be displayed for the maximum register length.
本発明は、このような従来の問題を解決するものであり
、可変長のレジスタの内容を、指定されたレジスタ長分
だけ表示することができるCPUシミュレータを提供す
ることを目的とするものである。The present invention solves such conventional problems, and aims to provide a CPU simulator that can display the contents of variable-length registers for a specified register length. .
課題を解決するための手段
本発明は上記目的を達成するために、可変長のレジスタ
のレジスタ長を監視するレジスタ長監視部と、前記レジ
スタ長監視部からの情報をもとに可変長のレジスタ内デ
ータの表示形式を切り替える表示形式切替部とを設け、
可変長のレジスタ内のデータを表示する際に指定された
レジスタ長分だけ表示することができるようにしたもの
である。Means for Solving the Problems In order to achieve the above object, the present invention includes a register length monitoring unit that monitors the register length of a variable-length register, and a register length monitoring unit that monitors the register length of a variable-length register based on information from the register length monitoring unit. A display format switching unit is provided to switch the display format of the internal data.
When displaying data in a variable-length register, only the specified register length can be displayed.
作用
したがって、本発明によれば、レジスタ長監視部からの
情報をもとに可変長のレジスタ内のデータの表示形式を
切り替えることにより、゛可変長レジスタ内のデータを
指定されたレジスタ長分だけ表示することができる。Therefore, according to the present invention, by switching the display format of data in a variable-length register based on information from the register length monitoring section, ``the data in the variable-length register is displayed by the specified register length.'' can be displayed.
実施例
第1図は本発明によるCPUシミュレータの一実施例の
構成を示すブロック図である。第3図の従来例と同一部
位には同一の参照番号を付し、その説明は適宜省略する
。第1図において、1〜5は従来例と同じである。6は
レジスタ長監視部3からの情報をもとに可変長レジスタ
用バッファ4内のデータの表示形式を切り替える表示形
式切替部である。Embodiment FIG. 1 is a block diagram showing the configuration of an embodiment of a CPU simulator according to the present invention. The same reference numerals are given to the same parts as in the conventional example shown in FIG. 3, and the explanation thereof will be omitted as appropriate. In FIG. 1, 1 to 5 are the same as the conventional example. Reference numeral 6 denotes a display format switching unit that switches the display format of data in the variable-length register buffer 4 based on information from the register length monitoring unit 3.
次に、上記実施例の動作について説明する。上記実施例
において、シミュレータ部1がレジスタ長を設定する命
令をシミュレーションすると、レジスタ長指定フラグ2
の状態が設定される。次に、シミュレータ部1がレジス
タの内容を読み/書きする命令をシミュレーションする
と、レジスタ長指定フラグ2の状態を監視していたレジ
スタ長監視部3からの情報をもとに、可変長レジスタ用
バッファ4の内容を指定されたレジスタ長分だけ読み/
書きする。表示形式切替部6はレジスタ長監視部3から
の情報をもとに可変長レジスタ用バッファ4の内容を指
定されたレジスタ長分だけ表示形式に切り替え、レジス
タ表示部5は表示形式切替部6によって切り替えられた
表示形式で表示を行う。第2図は上記実施例におけるレ
ジスタ長指定フラグと表示内容との関係を具体的に示し
た図である。第2図において、レジスタ長指定フラグ2
の値が1のときは可変長レジスタの長さは8ビツト、○
のときは可変長レジスタの長さは16ビツトに指定され
るとする。また、8ビツト長を指定したときは、可変長
レジスタ用バッファ4内のデータのうち下位8ビツトの
みを使用し、上位8ビツトは変化しないと仮定する。第
2図の■のようにレジスタ長指定フラグ2の値がOなら
ば、レジスタ長は16ビツトであり、可変長レジスタ用
バッファ4内のデータを16ビツト分表示するが、■の
ようにレジスタ長指定フラグ2の値を1にすると、レジ
スタ長は8ビツトになり、可変長レジスタ用バッファ4
内のデータのうち上位8ビット分は表示せず、下位8ビ
ット分だけを表示することになる。Next, the operation of the above embodiment will be explained. In the above embodiment, when the simulator unit 1 simulates an instruction to set the register length, the register length designation flag 2
The state of is set. Next, when the simulator unit 1 simulates an instruction to read/write the contents of a register, the variable-length register buffer is Read the contents of 4 for the specified register length/
Write. The display format switching unit 6 switches the contents of the variable-length register buffer 4 to the display format by the specified register length based on the information from the register length monitoring unit 3. Display in the switched display format. FIG. 2 is a diagram specifically showing the relationship between the register length designation flag and display contents in the above embodiment. In Figure 2, register length specification flag 2
When the value of is 1, the length of the variable length register is 8 bits, ○
In this case, the length of the variable length register is specified to be 16 bits. Furthermore, when 8-bit length is specified, it is assumed that only the lower 8 bits of the data in the variable-length register buffer 4 are used, and the upper 8 bits remain unchanged. If the value of the register length designation flag 2 is O as shown in ■ in Figure 2, the register length is 16 bits, and 16 bits of data in the variable-length register buffer 4 is displayed. When the value of length specification flag 2 is set to 1, the register length becomes 8 bits, and variable length register buffer 4
The upper 8 bits of the data within are not displayed, but only the lower 8 bits are displayed.
このように、上記実施例によれば、レジスタ長監視部3
からの情報に基づいて、表示形式切替部6は可変長レジ
スタ用バッファ4内のデータの表示形式を切り替えてレ
ジスタ表示部5に表示を行うため、可変長レジスタバッ
ファ4内のデータを指定されたレジスタ長分だけ表示で
きることになる。In this way, according to the above embodiment, the register length monitoring unit 3
Based on the information from the variable-length register buffer 4, the display format switching section 6 switches the display format of the data in the variable-length register buffer 4 and displays it on the register display section 5. Only the register length can be displayed.
発明の効果
本発明は上記実施例により明らかなように、以下に示す
効果を有する。すなわち、レジスタ長監視部からの情報
に基づいて表示形式切替部か可変長レジスタ内のデータ
の表示形式を切り替えることにより、可変長レジスタ内
のデータを指定されたレジスタ長分だけ表示することが
できる。Effects of the Invention As is clear from the above examples, the present invention has the following effects. In other words, by switching the display format of the data in the variable length register using the display format switching unit based on information from the register length monitoring unit, it is possible to display only the specified register length of the data in the variable length register. .
第1図は本発明によるCPUシミュレータの一実施例の
構成を示すブロック図、第2図は第1図の実施例におけ
るレジスタ長指定フラグと表示内容との関係を示す図、
第3図は従来のCPUシミュレータを示すブロック図で
ある。
1・・・シミュレータ部、2・・・レジスタ長指定フラ
グ、3・・・レジスタ長監視部、4・・・可変長レジス
タ用バッファ、5・・レジスタ表示部、6・・・表示形
式代理人の氏名 弁理士 小鍜治 明 ばか28第 1
図
第2図
■
■ 24FIG. 1 is a block diagram showing the configuration of an embodiment of a CPU simulator according to the present invention, FIG. 2 is a diagram showing the relationship between the register length designation flag and display contents in the embodiment of FIG. 1,
FIG. 3 is a block diagram showing a conventional CPU simulator. 1...Simulator section, 2...Register length specification flag, 3...Register length monitoring section, 4...Variable length register buffer, 5...Register display section, 6...Display format agent Name: Patent Attorney Akira Okaji Baka28 No. 1
Figure 2 ■ ■ 24
Claims (1)
スタのレジスタ長を指定する手段を有するCPUの命令
のシミュレーションを行うシミュレータ部と、このシミ
ュレータ部に接続され、可変長レジスタのレジスタ長を
指定するレジスタ長指定フラグと、このレジスタ長指定
フラグに接続され、その状態を監視するレジスタ長監視
部と、前記シミュレータ部に接続され、可変長レジスタ
内のデータが書き込まれ、大きさが可変長の範囲内での
最大レジスタ長である可変長レジスタ用バッファと、前
記レジスタ長監視部と前記可変長レジスタ用バッファに
接続され、前記レジスタ長監視部からの情報に基づいて
前記可変長レジスタ用バッファに記憶された可変長レジ
スタ内のデータの表示形式を切り替える表示形式切替部
と、この表示形式切替部に接続され、前記可変長レジス
タ用バッファの内容を前記表示形式切替部によって切り
替えられた表示形式で指定されたレジスタ長分だけ表示
するレジスタ表示部とを備えたCPUシミュレータ。a simulator section that simulates CPU instructions, which has a variable-length register configuration and means for specifying the register length of the variable-length register; and a register connected to the simulator section that specifies the register length of the variable-length register. a register length specification flag, a register length monitoring unit connected to the register length specification flag to monitor its status, and a register length monitoring unit connected to the simulator unit to write data in the variable length register, and write the data within the variable length range. A variable-length register buffer having a maximum register length in a display format switching unit that switches the display format of data in the variable length register; and a display format switching unit connected to the display format switching unit that specifies the contents of the variable length register buffer in the display format switched by the display format switching unit. A CPU simulator equipped with a register display section that displays only the registered register length.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2333860A JPH04199440A (en) | 1990-11-29 | 1990-11-29 | CPU simulator |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2333860A JPH04199440A (en) | 1990-11-29 | 1990-11-29 | CPU simulator |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH04199440A true JPH04199440A (en) | 1992-07-20 |
Family
ID=18270757
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2333860A Pending JPH04199440A (en) | 1990-11-29 | 1990-11-29 | CPU simulator |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH04199440A (en) |
-
1990
- 1990-11-29 JP JP2333860A patent/JPH04199440A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR950702718A (en) | Intelligent Graphic Control Panel and Highlight Control | |
| JPH04174497A (en) | Display controlling device | |
| JPS6170590A (en) | Display unit | |
| JPH04204994A (en) | Computer system | |
| JPH0476598A (en) | Display controller | |
| JPH04280321A (en) | Auxiliary screen design device | |
| JP3083538B2 (en) | Drawing equipment | |
| JPS63153586A (en) | Image display device | |
| JPS6363089A (en) | Enhancement display device | |
| JPH028892A (en) | Graphic display | |
| JPS5893097A (en) | color switching circuit | |
| JPS638696A (en) | Display unit | |
| JPS60211490A (en) | Screen switching system for kanji display unit | |
| JPS6138987A (en) | Crt controller | |
| JPS61663U (en) | program electronic computer | |
| JPH01314321A (en) | Touch panel input device | |
| JPS60196793A (en) | Image display | |
| JPS6228789A (en) | Graphic display | |
| JPH01283593A (en) | Access system for display memory | |
| JPH01105994A (en) | State display system for virtual screen | |
| JPH0468394A (en) | Image display controller | |
| JPS58156335U (en) | Setting device for calculation data | |
| JPH0540669A (en) | Application program execution status display method | |
| JPH0281087A (en) | Display controller | |
| JPH01246630A (en) | Data access device |