====================== VNA: Conditional Jumps [TOC] ====================== Update the ULM simulator ======================== Change into the directory that contains `ulm.cc` (cloned from github in the previous session). Then update the source code for the simulator: ---- SHELL (path=session01/ulm) ------------------------------------------------ pwd git pull -------------------------------------------------------------------------------- Note that this will also download or update the ULM assembler (consisting of `ulmas_label.awk` and `ulmas_codegen.awk`). You will need the assembler for the next session. If you don't get a message that the source code of `ulm.cc` was up-to-date you need to re-compile with ---- SHELL (path=session01/ulm) ------------------------------------------------ g++ -Wall -std=c++11 -o ulm ulm.cc -------------------------------------------------------------------------------- Exercise ======== Verify the you correctly predicted the execution of the programs `foo1.ulm` and `foo2.ulm`: - --- CODE(type=txt,file=session03/foo1.ulm) ---------------------------------- 81 24 00 01 1A 01 00 02 63 01 02 00 99 00 00 03 81 0D 00 02 9A 00 00 02 81 2A 00 02 46 02 01 00 00 00 00 00 80 ----------------------------------------------------------------------------- - ---- CODE(type=txt,file=session03/foo2.ulm) --------------------------------- 81 24 00 01 1B 01 00 02 63 01 02 00 95 00 00 03 81 0D 00 02 9A 00 00 02 81 2A 00 02 46 02 01 00 00 00 00 00 80 -----------------------------------------------------------------------------