Question
Question 1 (1+0.5+2+0.5= 4 marks) 1 (a) Showing all your working out and the carries perform the following additions (i) 1110 10002 + 0110 11112,
Question 1 (1+0.5+2+0.5= 4 marks) 1 (a) Showing all your working out and the carries perform the following additions
(i) 1110 10002 + 0110 11112, using 8 bit arithmetic. Explain whether your solution is valid or invalid?
(ii) 578 + 158 1 (b) The bitwise operations AND, OR, NOT and XOR are used to do bit-masking, that is, to set (made 1 ) or reset (made 0) particular bits on a byte (or word).
Find the appropriate bitmask(s) M and bitwise operator(s) for any byte A for the following cases showing all your working out and intermediate steps: (i) Make sure that the LSB is set and only this bit is set in the byte. (ii) Flip the MSB and bit 3 leaving the other bits untouched.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started