2. Each part of this problem gives a design with an if structure and some assump
ID: 3589993 • Letter: 2
Question
2. Each part of this problem gives a design with an if structure and some assumptions about how the variables are stored in an assembly language program. Give a fragment of assembly language code that implements the design. The assembly language code should flow the same as the design. ic) Design: ifabc then check:-Y else check N; end if Asumponsh ofa doubleword in menony: the character chect is in the AL register d) Design: vaue1000) or ivalue a 1000) then value 0 end if Assumption: value is in EDX le) Design: i (ch 2 and (ch s ) then add 1 to lowerCount; else if (ch z A) and (ch s Z) then add 1 to upperCount else add I to otherCount end if, end if Assumptions: ch is in AL; each of iowenount upperCount, and otherCount references a doubleword in memoryExplanation / Answer
(a) =>
(b) =>
(c) =>
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.