The hexadecimal dump from part of a bigendian computers memo
The hexadecimal dump from part of a big-endian computer’s memory is as follows (5 each)
1200) 434F 4D50 5554 5245
1208) FFF2 3508 0100 57FC
1210) 7892 4123 0000 1234
Decode the hexadecimal data, assuming that it is a sequence of:
8 ASCI encoded characters – write the characters;
one 2’s complement 16-bit number – present the decimal number;
IEEE Floating point single precision number –present the binary scientific notation of the number;
one byte binary number in octal system - present the octal number;
one 8-bit number presented in Excess 127 code - present the decimal number
4 bytes natural BCD number – present the encoded decimal number
Special IEEE Floating point number – present the binary scientific notation
Solution
Binary representation of data:1200) 0100001101001111 0100110101010000 0101010100110100 0101001001000101
2\'s complement
1011110010110000 //1\'s complement
+1
1011110010110001
similarily do for rest of
1011001010101111
+1
1011001010110000
and
1010101011001011
+ 1
1010101011001100 //decimal 1*2^15+0*2^14+1*2^1........so on
1010110110111011
+1
1010110110111100
so decimal repreentan will be
1200) 48305 45744 43724 44476
and so rest of same like that f0r 1208 and 1210
octal representation
1200) 041517 046520 052464 051105 //make 3-3 pair from left and write its decimal example 111 is 7 which three leftmost digits repeat it.
Binary to BCD Conversion:
Steps
1 -- Convert the binary number to decimal.
2 -- Convert decimal number to BCD.
Example convert (11101)2 to BCD.
Step 1 Convert to Decimal
Binary Number 111112
Calculating Decimal Equivalent
Binary Number 111112 = Decimal Number 31
Step 2 Convert to BCD
Decimal Number 3110
Calculating BCD Equivalent. Convert each digit into groups of four binary digits equivalent.
Result
so for 1200) 48305 45744 43724 44476
01001000001100000101 01000101011101000100 01000011011100100100 01000100010001110110 //it is bdc epresentation
and do it for as same for 1208 and 1210.
conversion in excess127
example if you want to convert 77 t0 excess127 then do \"77 + 127 mod 256 = 204 mod 256 = 204 = 11001100\"
so we will do same for this for 1200) in deciam representation
1200) 48305 +127mod256 45744+127mod256 43724 +127mod256 44476+127mod256
1200) 48 47 75 59 //now convert to binary
1200) 00110000 00101111 01001011 00111011
do it sae for 1208) and 1210.
| Step | Binary Number | Decimal Number | 
|---|---|---|
| Step 1 | 111112 | ((1 × 24) + (1 × 23) + (1 × 22) + (1 × 21) + (1 × 20))10 | 
| Step 2 | 111112 | (16 + 8 + 4 + 2+ 1)10 | 
| Step 3 | 111112 | 31 | 


