a. What is the result (in hex) of 0x7F and’d with 0x3A? (and gate)
b. What is the result (in hex) of 0x5A xor’d with 0x9F? (xor)
Hexadecimal Binary 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 a) 0x7F => 0111 1111 0x3A => 0011 1010 AND Table: ------------ 0 0 -> 0 0 1 -> 0 1 0 -> 0 1 1 -> 1 0111 1111 0011 1010 ----------- 0011 1010 => 0x3A ----------- Answer: 0x3A b) 0x5A => 0101 1010 0x9F => 1001 1111 XOR Table: ------------ 0 0 -> 0 0 1 -> 1 1 0 -> 1 1 1 -> 0 0101 1010 1001 1111 ---------- 1100 0101 => 0xC5 ---------- Answer: 0xC5
Get Answers For Free
Most questions answered within 1 hours.