Realize flexible and low-cost command replacement method and device
An instruction replacement, low-cost technology, applied in machine execution devices, program control design, instruments, etc., can solve the problem of wasting space to store the function entry address table, unable to support instruction replacement methods, etc., to achieve the effect of low cost
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0033] In order to make the purpose and advantages of the embodiments of the present invention more clear, the embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings.
[0034] Figure 4 It is a flow chart of the instruction replacement method of the instruction replacement device in the embodiment of the present invention, and the flow includes:
[0035] Step 401: Determine whether the instruction replacement condition is currently satisfied, if yes, replace the instruction opcode read from the current address on the address line, and then execute step 402; otherwise, execute step 403.
[0036] Step 402: Detect whether the instruction opcode read from the current address indicates a trap instruction, if yes, execute the replacement code in the preset address, and end the process; otherwise, execute step 403.
[0037] In the embodiment of the present invention, the trap instruction is a pre-set instruction t...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 