- Convert each of the following BINARY representations to
HEXADECIMAL representations. The first one is done for you.
0001 1001 = Hex 19
1111 0000 = Hex __ __
0001 1000 = Hex __ __
0011 0001 = Hex __ __
- Convert the following HEXADECIMAL dump to binary. Group
the binary digits in groups of 4.
3132 64FE = BINARY ____ ___ ____ ____ ____ ____ ____ ____ ____ ____
- The HEX value X'69' is a set of program flags in memory.
Which bits are ON? Check the ones which are on?
(The first bit is bit 1). ____ _____ ____ ____ _____ ____
- In memory, we have the following big-endian 4 byte integers.
Determine their values in decimal. The first two are done for you.
0000 0B2A = ___2858___ (10 + 2*16 + 11*16^2 =
10
32
11*256= 2816
----
2858
0001 1024 __69668___ (4 + 2*16 + 0 * 16^2 + 1*16^3 + 1*16^4 =
4
32
4096
65536
-----
69668
0000 0020 _________________
0000 000E _________________
0000 00FF _________________
0000 1111 _________________
000F 0051 _____________________________
- Consider this text file:
Line 1111
Line 2222
a
B
1
We dumped this file using a hex dump utility which produced this
output:
0000000: 4c69 6e65 2031 3131 310d 0a4c 696e 6520 Line 1111..Line
0000010: 3232 3232 0d0a 610d 0a42 0d0a 310d 0a 2222..a..B..1..
What hexadecimal byte(s) are used to demark the end of each line of
text? _______________
Is this end of line sequence used after the last line? ____________
What is the hex code for ASCII 'L'? _______ for '1'? _______
- An Intel (little-endian) integer has the value:
X'35010200'
Write this as big-endian (i.e. do the reversals) in hex.
___________________________
BONUS: What is this integer in decimal? _______________________
- A little-endian number in memory is X148e. What is this in
decimal? Show steps of flipping bytes, then converting.
______________________________________
______________________________________
______________________________________