Professional Documents
Culture Documents
Unit 1. Introduction Exercises: o o o o o o o o
Unit 1. Introduction Exercises: o o o o o o o o
Snchez
Instruction 000010010XXXXXXX
Description Adds the register 00 and 10, and it stores the result in 01
It stores in register 01 the value 00000000101 It stores in register 01 the value stored in the memory address 00000001001 It stores in the memory address 00000001001 the content of the register 01 Branch to the instruction stored in position 0000000001001
1000000000001001
1010100000001001
If the content of register 01 is equal to the content of register 00, the next instruction to be executed is the stored in the Memory address 000001001
Exercise 4. Using the previous machine instructions, write a program to compute 1 + 2 +3 + 4 + 10.