Method for realizing 8-bit embedded CPU (central processing unit) simulation running environment by aid of Java
An operating environment, embedded technology, applied in software simulation/interpretation/simulation, program control devices, etc., can solve the problems of 8-bit embedded system design, development and maintenance difficulties, improve the efficiency of design, development and debugging, easy to deploy Effect
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Publication Date
- 2012-06-20
Smart Images
Figure 1 Figure 2
Abstract
Description
technical field
[0001] The present invention relates to a method for realizing 8-bit embedded CPU simulation operating environment through Java, so as to directly execute embedded program code specially written for 8-bit embedded CPU, and its execution effect is like a real 8-bit embedded CPU hardware Same. Background technique
[0002] In industry, manufacturing and other industries, embedded systems are widely used to realize automatic production control and process automation. Embedded systems use a large number of 8-bit embedded CPU environments (single-chip microcomputers). When developing programs for these embedded systems, running tracking and debugging are more complicated, and special hardware development boards and other equipment are required, which is costly and not easy. Installation and deployment, which brings great difficulties to the design, development and maintenance of embedded systems. Therefore, being able to provide an 8-bit CPU embedded system sim...
Examples
Embodiment Construction
[0025] In the method, an instruction interpreter, a virtual processor, a virtual memory, a virtual stack manager, a virtual input and output device, and a Java graphical user interface of an 8-bit embedded CPU system are respectively generated on the virtual machine through Java class files.
[0026] The instruction interpreter completes the translation of the embedded system program code, and converts it into the corresponding equivalent Java function code that can be executed in the memory of the Java virtual machine. Virtual processor is used to simulate stack data management and input and output device management in virtual machine memory; virtual memory is used to simulate memory read and write functions in virtual machine memory, simulating the physical operation effect of embedded system memory; virtual stack management The device is used to simulate the stack operation in the virtual machine memory, and simulate the physical operation effect of the embedded system stack...