diff options
| author | Xavier ASUS <xavi92psx@gmail.com> | 2019-10-18 00:31:54 +0200 |
|---|---|---|
| committer | Xavier ASUS <xavi92psx@gmail.com> | 2019-10-18 00:31:54 +0200 |
| commit | 268a53de823a6750d6256ee1fb1e7707b4b45740 (patch) | |
| tree | 42c1799a9a82b2f7d9790ee9fe181d72a7274751 /sim/ucsim/doc/analyzer.html | |
| download | sdcc-gas-268a53de823a6750d6256ee1fb1e7707b4b45740.tar.gz | |
sdcc-3.9.0 fork implementing GNU assembler syntax
This fork aims to provide better support for stm8-binutils
Diffstat (limited to 'sim/ucsim/doc/analyzer.html')
| -rw-r--r-- | sim/ucsim/doc/analyzer.html | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/sim/ucsim/doc/analyzer.html b/sim/ucsim/doc/analyzer.html new file mode 100644 index 0000000..7692fe8 --- /dev/null +++ b/sim/ucsim/doc/analyzer.html @@ -0,0 +1,32 @@ +<html> + <head> + <meta content="text/html; charset=ISO-8859-2" http-equiv="content-type"> + <title>μCsim: Code Analyzer</title> + </head> + <body bgcolor="white"> + <h1>Code analyser</h1> + Code + analyser analyses the code of the simulated program and tries to + figure out which address contains valid instruction. <br> + <br> + Analyser starts + analysing of the code with address 0 which always must contain an + instruction because reset of the device sets zero into program + counter. So, analyser marks address 0 that it contains an + instruction. Then it marks the address of the next instruction and so + on. If the analyser finds a <i>jump</i> instruction it continues with + destination address of the <i>jump</i> instruction. If it finds a + <i>call</i> instruction, it recursively analyses destination address + as well as next instruction follows the <i>call</i> one.<br> + <br> + Analysator + stops if it finds an address which is already marked or if it finds a + <i>return</i> instruction or an indirect <i>jump</i> which is + impossible to follow. All these mean that it is impossible to discover + all instructions of the program. + <p>This problem is solved in very simple way. If the + execution reaches an unmarked address, the analyser is called to + analyse the code starting at actual address pointed by the PC.</p> + <hr> + </body> +</html> |
