VNA: Conditional Jumps
Content |
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:
thales$ pwd /home/numerik/hpc/ss18/sessions/session01/ulm thales$ git pull Already up-to-date. thales$
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
thales$ g++ -Wall -std=c++11 -o ulm ulm.cc thales$
Exercise
Verify the you correctly predicted the execution of the programs foo1.ulm and foo2.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
-
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