1539026015
1001 0101
a)5b39+39a2=101 1011 0011 1001+11 1001 1010 0010=1001 0100 1101 1011 af=0 sf=1 zf=0 cf=0 b)5b39+dc49=101 1011 0011 1001+1101 1100 0100 1001=1 0011 0111 1000 0010 af=1 sf=0 zf=0 cf=1
Starting from the right, group the binary number into sets of 4. Then use the following conversions for each quartet: 0000 = 0 0001 = 1 0010 = 2 0011 = 3 0100 = 4 0101 = 5 0110 = 6 0111 = 7 1000 = 8 1001 = 9 1010 = A 1011 = B 1100 = C 1101 = D 1110 = E 1111 = F.
You convert four bits at a time, starting at the right. Every group of 4 bits becomes one hexadecimal digit. It is convenient to use a table (or know the table by heart): 0000 = 0 0001 = 1 0010 = 2 0011 = 3 0100 = 4 0101 = 5 0110 = 6 0111 = 7 1000 = 8 1001 = 9 1010 = A 1011 = B 1100 = C 1101 = D 1110 = E 1111 = F
1539026015
1 = 0001 2 = 0010 3 = 0011 4 = 0100 5 = 0101 6 = 0110 7 = 0111 8 = 1000 9 = 1001
16: 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111
The Alphabet in Binary CodeLetterBinary CodeA01000001B01000010C01000011D01000100E01000101F01000110G01000111H01001000I01001001J01001010K01001011L01001100M01001101N01001110O01001111P01010000Q01010001R01010010S01010011T01010100U01010101V01010110W01010111X01011000Y01011001Z01011010LetterBinary Codea01100001b01100010c01100011d01100100e01100101f01100110g01100111h01101000i01101001j01101010k01101011l01101100m01101101n01101110o01101111p01110000q01110001r01110010s01110011t01110100u01110101v01110110w01110111x01111000y01111001z01111010
1001 0101
Write each hexadecimal digit straight into binary: 5 = 0101 4 = 0100 2 = 0010 So 0x542 = 0101 0100 0010 = 10101000010 (without the spaces). Hex digit to binary conversion: 0 = 0000, 1 = 0001, 2 = 0010, 3 = 0011 4 = 0100, 5 = 0101, 6 = 0110, 7 = 0111 8 = 1000, 9 = 1001, a = 1010, b = 1011 c = 1100, d = 1101, e = 1110, f = 1111
It is DAB not that hard really 0001 1 0010 2 0011 3 0100 4 0101 5 0110 6 0111 7 1000 8 1001 9 1010 A 1011 B 1100 C 1101 D 1110 E 1111 F and there you go
Collect them in groups of 4Then0000 = 0 0001 = 1 0010 = 2 0011 = 30100 = 4 0101 = 5 0110 = 6 0111 = 71000 = 8 1001 = 9 1010 = A 1011 = B1100 = C 1101 = D 1110 = E 1111 = F
Here are the binary numbers from zero to fifteen: 0 = 0000 1 = 0001 2 = 0010 3 = 0011 4 = 0100 5 = 0101 6 = 0110 7 = 0111 8 = 1000 9 = 1001 10 = 1010 11 = 1011 12 = 1100 13 = 1101 14 = 1110 15 = 1111
Add the binary equivalent of 3 (0011) to each digit of the number in binary format. Ex: 1. Excess-3 of 6 is 0110(6) + 0011(3)= 1001(9) 2. Excess-3 of 12 is 0001 0010 + 0011 0011 = 0100 0101 (45)
a)5b39+39a2=101 1011 0011 1001+11 1001 1010 0010=1001 0100 1101 1011 af=0 sf=1 zf=0 cf=0 b)5b39+dc49=101 1011 0011 1001+1101 1100 0100 1001=1 0011 0111 1000 0010 af=1 sf=0 zf=0 cf=1
100 1000 100 0001 101 0110 100 0101 100 0001 100 1110 100 1001 100 0011 100 0101 100 0100 100 0001 101 1001---------Binary Representation. 110 101 126 105 101 116 111 103 105 104 101 131.------Octal