0:00
Hello.
00:02
In this problem, we have the following code stored in the memory cells starting from f0 to fd with the following content.
00:11
So assuming that we start with the program counter with the value f0, so that's the start of the code execution.
00:20
The question here is, what is the value stored in register zero after the hold of this code? so let's first start by translating this code and run it step by step.
00:33
So the first code here would be the 2 -0 -0 and that's simply the load operation and it tells the machine to load register 0 with the bit pattern 0.
00:48
So that's an initiation for the value for register 0.
00:53
The second code here would be the 2202.
00:58
Again, it's the load operation and here it loads register 2 with the bit pattern 02.
01:06
So that's the second step.
01:09
The third step here, again, i can see that that's a load operation because of the op code 2.
01:16
So that's here loading register 3 with the bit string 04.
01:23
Okay, the next operation here is the b3fc and that's the conditional jump.
01:32
So here we can translate this if register 3 and we always compare with register 0 to see if it's equal to.
01:43
If this condition is satisfied then we will jump to fc to be executed...