Imported Upstream version 2.9.0
[debian/cc1111] / sim / ucsim / doc / cpu.html
1 <html>
2 <head>
3 <title>Simulator for MCS51</title>
4 </head>
5
6 <body bgcolor="#f0f0ff">
7
8 <h1>Software simulator for MCS51</h1>
9
10 This screeshot demonstrates CPU window of the simulator. The CPU
11 window contains five different panes. Active pane can be changed by
12 pressing TAB and Shift-TAB keys. First pane contains disassembled code
13 of the program. Instructions found by the code analyzer appear on the
14 list only. Some of instructions can be highlighted in different
15 ways. First highlighted instruction on the list (instruction at
16 0x4386) is highlighted because there is a breakpoint specified at that
17 address. Second highlighted instruction (at 0x438A) shows a dynamic
18 breakpoint. Third highlighted line contains the cursor which can be
19 moved by pressing up and down arrow keys. Because the pane lists
20 analyzed instructions only, the list can be scrolled backward as well
21 as forward.
22
23 <p><img src="cpu.gif">
24
25 <p>Second pane which is under disass pane is a memory dump pane which
26 shows content of internal RAM. Activating this pane the cursor appears
27 in the pane and the memory content can be changed simply by entering
28 new value at requested location. Cursor can be moved by cursor keys.
29
30 <p>Next pane shows content of registers: accumulators, program status
31 word, general purpose registers, indirectly addressed memory
32 locations, data pointer, and stack pointer, program counter. Note that
33 changing content of PC can be dangerous. If you set new value to PC
34 and this address is not found by code analyzer as instruction,
35 disassembled list disappears from disass pane and an error message `PC
36 is at invalid address' appears. If you are sure that PC is at an
37 instruction (remember that code analyzer is unable to locate every
38 instructions of the program) you can "validate" actual address by
39 pressing Ctrl-F7 keys.
40
41 <p>Next pane shows values of ports. P0 and P2 is disabled if simulated
42 microcontroller is a 8X31 which needs P0 and P2 for multiplexed
43 address/data bus.
44
45 <p>Last pane is a passive pane, it can not be activated. It shows time
46 elapsed since last reset. First line contains number of number of
47 cycles (in hex) and second line the cycles that the CPU spent in
48 interrupt routines. Last line is calculated dependent of specified
49 XTAL frequency and it shows `real time' (symulated time) elapsed since
50 reset (in microseconds).
51
52 <p>At right side of menu bar there is an indicator which shows status
53 of the simulation (CPU Stopped, Symulation Running). The screenshot
54 shows some menus as well.
55
56 <hr>
57
58 </body>
59 </html>