1) How many times does this loop? L1 : Mον οχ,4 DEC CX Loop L1 a.2 b.4 c. forever (infinity loop) d.3 2) Given the following psudo code: Ax =DX; if(AX is even) AX= Ax+2; else AX = A+1; Complete the blanks in the following Assembly code to be equivalent to the given (psudo code)high-level code. mov Ax.Dx mov d,2 Div d cmp0 _ next add Ax,2 imp endif next: add ax,1 endif: a. AH je b. AL je C. AH ine. d.AL ine.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter2: Problem Solving Using C++using
Section2.3: Data Types
Problem 9E: (Practice) Although the total number of bytes varies from computer to computer, memory sizes of...
icon
Related questions
Question

i need the answer quickly

1) How many times does this loop?
L1: MOV CX, 4
DEC CX
Loop L1
a.2
b.4
c. forever (infinity loop)
d.3
2)
Given the following psudo code:
Ax =DX;
if(AX is even)
AX= Ax+2 ;
else
AX = A+1;
Complete the blanks in the following Assembly code to be equivalent to the given (psudo
code)high-level code.
mov Ax,Dx
mov cl,2
Div d
cmp,0
- next
add Ax,2
imp, endif
next: add ax,1
endif:
а. АН јe
b. AL je
C. AH ine.
d.AL ine.
Transcribed Image Text:1) How many times does this loop? L1: MOV CX, 4 DEC CX Loop L1 a.2 b.4 c. forever (infinity loop) d.3 2) Given the following psudo code: Ax =DX; if(AX is even) AX= Ax+2 ; else AX = A+1; Complete the blanks in the following Assembly code to be equivalent to the given (psudo code)high-level code. mov Ax,Dx mov cl,2 Div d cmp,0 - next add Ax,2 imp, endif next: add ax,1 endif: а. АН јe b. AL je C. AH ine. d.AL ine.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Business Models
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr