Processor chip emulator capable of setting program pointer value
A technology of program pointers and emulators, applied in the field of smart cards, can solve problems such as user program miswrite operations, user program execution confusion, etc., and achieve the effect of reliable debugging
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Publication Date
- 2012-05-23
- Estimated Expiration
- Not applicable · inactive patent
Smart Images
Figure 1 Figure 2
Abstract
Description
technical field
[0001] The invention relates to the field of smart cards, in particular to a processor chip emulator capable of setting the value of a current Program Counter (PC or PC pointer) by a user. Background technique
[0002] There is a user program developed by the user in the processor chip. In the writing and debugging of the user program, the tools used are generally the processor chip emulator and the debugging software on the user's computer—integrated development environment. The emulator uses an emulation chip containing various functions of the product processor chip to simulate the working behavior of the product processor chip, which is very close to the product processor chip in terms of function and performance.
[0003] The Program Counter (PC or PC pointer for short) value is stored in the PC pointer register of the processor chip, which is the address value of the program statement that the user program needs to execute in the next step, and is the i...
Examples
Embodiment Construction
[0014] What needs to be understood first is that the working state of the emulator is divided into two states: running and debugging, and the switching of the working state of the emulator is controlled by the user. When the user controls the emulator to enter the running state, the emulation chip in the emulator runs the user program at full speed. At this time, the integrated development environment debugging software will not interfere with the emulator's execution of the user program. The user program is executed on the actual product processor chip. The effect is basically the same; when the user controls the emulator to stop running the user program, the emulator exits the running state and enters the debugging state, and the emulator no longer executes the user program. At this time, the user can initiate observation / modification of the program code through the integrated development environment debugging software , memory data and other debugging operations.
[0015] A...