| Since the early 1970s, the 8-bit microcontroller (MCU) has became a widely used electronic industry devices. Although more complex, powerful 16 and 32 devices have shown tremendous performance advantages, the market of 8-bit MCU continues to expand. The company of Semico forecast that 8-bit MCU market value of the global total from 2002 to less than 4 billion US dollars up to 2008 of 5.8 billion US dollars through their research data.JA58XX SCM is CMOS manufacturing MCU series. It is small volume but integrates many functions, mainly for home appliances and portable electronic products, like micro-recorders, cameras, chargers, timers, smart sensors, software dog, lighting regulator, electronic switches, children's toys, and other consumer products. ASMIDE is a compilation compiler developed to promote JA58XX SCM market, and software simulation is the important part of the compilation program development platform ASMIDE. The paper will focus on the following aspects to discuss software simulation function on the design and implementation:1) Based on the compilation principle, it expounds respectively lexical analysis, grammar analysis, and code generation goals theory in the process of the realization JA58XX native to the compilation of code.2) Analysis JA58XX MCU hardware architecture and instruction set, the definition of related functions of simulation software platform ASMIDE compilation compiler.3) In comparing advantages and disadvantages of the traditional anti-compilation algorithm, it proposes this anti-code algorithm and data structure design to realize separating native code and operation code. Based on the study of JA58XX SCM it compiles testing code to anti-assembler code testing.4) It designs software simulation structure and gives specific interface variables of function and interface, analyzes JA58XX MCU the relationship between instructions cycle and the machine cycle. On the basis of concrete actions of each machine cycle, the anti-compilation code division simulation JA58XX each machine cycle moves to achieve ASMIDE software platform software simulation function.5) At last, it summarizes the anti-ASMIDE platform compilation procedure and indicates advantages and disadvantages of the procedure, expects the work to do in the prospects. |