00:01
Hello, so in this problem we're going to answer three questions related to including some machine language codes.
00:13
So in the first question here we are asked to write the instruction 2304 as a string of 16 bit.
00:26
So this instruction here is written in hexadecimal notation, hexadecimal.
00:36
And we know that each digit in hexadecimal representation can be represented as four binary digits.
00:45
So for example, we will start applying one by one from the left to the right.
00:51
So the digit 2 in hexadecimal corresponds to 0 -0 -1 -0 in binary.
01:03
This refers to the hexadecimal 2.
01:09
Then the second one is 3, which is again 0 -0 -1.
01:17
That's 3 written in binary.
01:20
And then zero, that's simply all four digits being zero.
01:26
And finally, four, it's zero, one in the third bit here.
01:34
Zero, zero.
01:35
Being in the third bit, this is two to the power of two, which is definitely four.
01:40
So that's two, three, zero, four represented in binary notation.
01:45
Now let's move to b.
01:47
In b, we need to write the up code of the instruction b to a5 in hexadecimal and to write it as a string of 4 bits in binary notation, of course.
02:03
So the first thing here is to determine exactly which part of this instruction is the upcode.
02:10
So as we know, the first hexadecimal digit is what we call the upcode.
02:16
So here the upcode is b, which is the first digit in an instruction machine language code.
02:24
So b here is the 11th number in 4 -bit hexadec decimal representation.
02:33
So this is exactly as we are presenting the number 11, because a is equivalent to 10, while b is the 11th in this order...