0:00
Hello.
00:02
So in this question we're asked to translate some instructions from english into machine language code in the machine described in the appendix of this book.
00:14
So in a, we need a code to load register number 6 with the hexadicimal value of 77.
00:27
So that's the first task here.
00:32
So we need to load a register with a bit string.
00:36
So this is the op code number two, and we need to load the register 6, and then the value that we need to load the register with is entered here.
00:49
So 2677 is the instruction code that will load register 6 with the value 77.
00:56
Now let's move to b.
00:58
Our goal here is to again load but now register 7 with the contents of memory cell with the address of 77.
01:13
So this is different from the previous one because in that case we would use the upcode 1 because this is the one used to load a register with the content of a certain memory cell.
01:25
So here load register 7 with the bit string located at 7 .7.
01:34
I don't know what will be stored now in register 7 because this depends on the content of the memory cell number 77 itself.
01:42
So that's the code in that case.
01:45
Now, c, we need to jump to the instructions located at the memory cells.
01:56
The memory cells with 24 if the content of register 0 is equal to the content in register a.
02:11
So now we need the jump up code and we know that the jump of code is b.
02:18
This is the conditional jump code and it compares whatever register here with the register number 0.
02:28
So now we need to compare a, the register a, with the zero...