Question: Hi! I have tasks for Computer Science 252 course. It contains material connected with assembly language. There are 5 tasks - 1, 2, 3, 5,
Hi! I have tasks for Computer Science 252 course. It contains material connected with assembly language. There are 5 tasks - 1, 2, 3, 5, 6 a) b) c)
Attaching pictures with tasks.




1. Fill the table with O's and l's for four flags: CF (carry flag), SF (sign or negative number flag), ZF (zero flag), and OF (positiveegative overflow): Number Type %rdi/edi/di 0xFFFE OxFFFE %rsi/esi/si Instruction addw %di. %s. addl %edi, %esi addw %di, %si addl %edi, %esi CFSFZF OF (a) Unsigned (b) Unsigned (c)| Signed two's complement 0xFFFE (d)| Signed two's complement 0xFFFE ( e) Signed two's complement 0xFFFFFFFF 0x80000000 addl %edi. %esi (f) |Signed two's complement 0xFFFF (g) Signed two's complement XFFFFFFFE 7FFFFFFE subi % es , %edi (h) Unsigned 0x2 -oxFFFF | subi oosi, % di 0xF 0xFF shlq 64, %rdi 1. Fill the table with O's and l's for four flags: CF (carry flag), SF (sign or negative number flag), ZF (zero flag), and OF (positiveegative overflow): Number Type %rdi/edi/di 0xFFFE OxFFFE %rsi/esi/si Instruction addw %di. %s. addl %edi, %esi addw %di, %si addl %edi, %esi CFSFZF OF (a) Unsigned (b) Unsigned (c)| Signed two's complement 0xFFFE (d)| Signed two's complement 0xFFFE ( e) Signed two's complement 0xFFFFFFFF 0x80000000 addl %edi. %esi (f) |Signed two's complement 0xFFFF (g) Signed two's complement XFFFFFFFE 7FFFFFFE subi % es , %edi (h) Unsigned 0x2 -oxFFFF | subi oosi, % di 0xF 0xFF shlq 64, %rdi
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
