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,SF, OF) give information about computation. 1) Given %ax=0x80,%bx=0x81. Determine the status

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

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!