A method for realizing an 8-bit embedded CPU (
central processing unit)
simulation running environment by the aid of
Java comprises an
embedded system program code instruction
interpreter, a virtual embedded processor, a
virtual memory, a virtual stack manager and virtual input and output equipment. The virtual embedded processor is realized based on corresponding
Java function codes. Simultaneously, an
embedded system program instruction stack is realized by the aid of the
Java and is used for managing execution sequence of
embedded system programs, and finally, a visual embedded
system simulation running result is provided for a user by the aid of a Java
graphical user interface. The method supports Windows / Linux /
Unix operation environments, and can be easily deployed in a PC (
personal computer), online debugging is carried out via a network by the aid of advantages of the Java network, design, development and debugging efficiency of an embedded
system is greatly improved, and the method is widely applicable to design, development, debugging and maintenance of industrial automatic embedded systems, and is an effective technical means for
simulation development and testing.