In: Computer Science
Calculate the value of each of the physical addresses. Assume numbers are hexadecimal.
a) B2C0:FA12
I am having difficulties to solve this.
I know that I have to add a zero to the starting so it becomes B2C00 + FA12 = B is 11 C is 13 F is 15 and A is 10 --> 1121300 + 151012
I do not know if this is the right procedure to add them.
Thank you in advance
Greetings!!
Basics needed:
In decimal(deca means 10) number system,10 unique symbols(0,1,2,3,4,5,6,7,8,9) are used to form the numbers. So the sequence starts like:0,1,2,3,4,5,6,7,8,9. Now all the symbols are used. To find the next number in the sequence, 1 is used in the MSB and then repeat the use of other digits as 10,11,12,13,14,15,16,17,18,19 and now the MSB is 2 and the sequence is 20,21,22,23,24,25,26,27,8,29 and so on.
In hexadecimal, equivalently 16 unique symbols(0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F) are used to form the numbers. So the sequence starts like:0,1,2,3,4,5,6,7,8,9,A,B,C,D,E. Now all the symbols are used. To find the next number in the sequence, 1 is used in the MSB and then repeat the use of other digits as 10,11,12,13,14,15,16,17,18,19,1A,1B,1C,1D,1E,1F and then use 2 as the MSB and the sequence is 20,21,22,23,24,25,26,27,28,29,2A,2B,2C,2D,2E,2F and so on.
Hexadecimal and equivalent decimal numbers:
ie if 9 is added with 1 in decimal system, it gives the next number in the series. ie 10
if 9 is added with 1 in hexadecimal system, it gives the next number in the series. ie A.
Similarly if A is added with 1,gives B.
If F is added with 1,gives 10(this is the next number in the series)
F+5=14 and
F+9=18 and
F+A=19 and to do this F is added with the decimal equivalent of A which is 10
F+B = 1A and to do this F is added with the decimal equivalent of B which is 11(Please note that while adding 11 get the 11th number in the sequence)
FF+1=100
[F+1=10 and 1 is carry and is forwarded to the next position and then F+1=10 and hence the answer is 100]
Now ready to do math.
How to calculate the Physical address using B2C0:FA12 :
B2C00+
FA12
----------
C2612
[0+2=2 and 0+1=1 and C+A=16, out of which 1 is carry and carry over to the next position and F+2+1=12 and 1 is carry over and B+1=C]
Hope this helps