Answered step by step
Verified Expert Solution
Question
1 Approved Answer
(If the two problems can be explained please, or instructions showed.) OxFF 1. Fill the table with O's and 1's for four flags: CF (carry
(If the two problems can be explained please, or instructions showed.)
OxFF 1. Fill the table with O's and 1's for four flags: CF (carry flag), SF (sign or negative number flag), ZF (zero flag), and OF (positiveegative overflow): Number Type ordi/edi/di %rsi/esi/si Instruction ICF SF ZF or|| (a) Unsigned loxFFFE |0x4 addw odi, osi (b) Unsigned OxFFFE Ox4 addl wedi, %esi (c) Signed two's complement OxFFFE Ox2 addwadi, %si (d) Signed two's complement OxFFFE 0x2 addl %edi, besi (e) Signed two's complement OxFFFFFFFF||0x80000000 addl kedi, %esi o Signed two's complement OxFFFF -OxFFFF sub1 %si, odi (g) Signed two's complement OxFFFFFFFE Ox7FFFFFFE sublocsi, %cdi |(h) Unsigned |0xF shlq 64, ordi 2. In the assembly code below, jump targets are encoded in PC-relative form, in other words, target addresses are computed relative to the memory address of the next instruction, Following the Practice problem 3.15 in page 330, fill the table with target addresses by replacing aaaaaa-ccccce with memory addresses: | Address Instructions in Hexa|---|Assembly Instructions |ab1234: 74 08 lje aaaaaa ab1236: 48 89 do mov ordx.orax abcde: |7c 07 |j1 bbbbbb abcdf1: 48 39 f7 emp orsi,ordi cccccc: |7d 11 lige Ox123456 dddddd: |48 85 ab test ordi,ordi ab01f0: 7f 2f ff ff ig eeeeee ab01f4: 48 39 d6 mov %rdx.orsi OxFF 1. Fill the table with O's and 1's for four flags: CF (carry flag), SF (sign or negative number flag), ZF (zero flag), and OF (positiveegative overflow): Number Type ordi/edi/di %rsi/esi/si Instruction ICF SF ZF or|| (a) Unsigned loxFFFE |0x4 addw odi, osi (b) Unsigned OxFFFE Ox4 addl wedi, %esi (c) Signed two's complement OxFFFE Ox2 addwadi, %si (d) Signed two's complement OxFFFE 0x2 addl %edi, besi (e) Signed two's complement OxFFFFFFFF||0x80000000 addl kedi, %esi o Signed two's complement OxFFFF -OxFFFF sub1 %si, odi (g) Signed two's complement OxFFFFFFFE Ox7FFFFFFE sublocsi, %cdi |(h) Unsigned |0xF shlq 64, ordi 2. In the assembly code below, jump targets are encoded in PC-relative form, in other words, target addresses are computed relative to the memory address of the next instruction, Following the Practice problem 3.15 in page 330, fill the table with target addresses by replacing aaaaaa-ccccce with memory addresses: | Address Instructions in Hexa|---|Assembly Instructions |ab1234: 74 08 lje aaaaaa ab1236: 48 89 do mov ordx.orax abcde: |7c 07 |j1 bbbbbb abcdf1: 48 39 f7 emp orsi,ordi cccccc: |7d 11 lige Ox123456 dddddd: |48 85 ab test ordi,ordi ab01f0: 7f 2f ff ff ig eeeeee ab01f4: 48 39 d6 mov %rdx.orsi
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