Question: ECE 241 Home Work 1 Spring 2018 4) Write out the results of the following logical operations, assuming the variables are all int's (16-bit integers).

 ECE 241 Home Work 1 Spring 2018 4) Write out the

ECE 241 Home Work 1 Spring 2018 4) Write out the results of the following logical operations, assuming the variables are all int's (16-bit integers). Also assume that the variable "Port" is equal to 0x0055 at the start of each line. (5) A) Port &= 0xfff0; B) Port I= 15; // 15 is decimal. C) Port- Port 0x0005: D) Port = (( Port & ~ (0x800f) ) I 0:0020 ); Write the masking operation (similar in form to those in problem 4) that do the following masking operation. (5) Always remember the bit number starts with 0 5) bit numbering 15,14,13,12 11,10,9,8 7,6,5,4 3,2,1,0 A) Force bits 13 and 10 low Port A) Force bit 9 high Port- A) Toggle bit 11 Port A) Force bit 15 low and bit 1 high Port = (Port _0x___ ) _ 0x

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!