Question: 3. [9pt] Individual bits in the single bit register (CF, ZF, SF, OF) give information about computation. 1) Given %ax=0x80,%bx=0x81. Determine the status of all
![3. [9pt] Individual bits in the single bit register (CF, ZF,](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f3124c8d06b_96366f3124be7e5d.jpg)

3. [9pt] Individual bits in the single bit register (CF, ZF, SF, OF) give information about computation. 1) Given %ax=0x80,%bx=0x81. Determine the status of all bit registers in the following cases: a. addw 88ax,88bx b. subw s c. subw o8bx, o ax8 2) Given %ax=0xFF,%bx=0x01. Determine the status of all bit registers in the following cases: a. addw 8 osax, 8bx b. subw osax, 8 c. subw o8bx, 8 4. 14 Fill in the missing expressions in the C code according to the given assembly code. short test (short x, short y, short z ) x in %rdi,y in %rsi,z in %rdx test: 5. [13pt] Write the c code for the corresponding assembly code. For a function with prototype [13pt] Write the c code for the corresponding assembly code. For a function with prototype long decode2(long x, long y, long z ); GCC generates the following assembly code: 12345678decode2:subqimulqmovqsalqsarqxorqret%rdx,%rsi%rsi,%rdi%rsi,%rax$63,%rax$63,%rax%rdi,%rax Parameters x,y, and z are passed in registers %rdi,%rsi, and %rdx. The code stores the return value in register \%rax. Write C code for decode2 that will have an effect equivalent to the assembly code shown
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
