1) Write simple instructions (simple program) that will add two consecutive bytes of data storied with offset locations NUM and NUM+1, store the result into the memory location NUM+2, using both: a- Direct addressing mode b- Indirect addressing mode or any mode 2) Write simple instructions (simple program) make 32-bit subtraction with Nol: Ax Bx No2: Cx Dx – Result: [SI] [DI]

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter2: Problem Solving Using C++using
Section2.5: Variables And Declaration Statements
Problem 10E
icon
Related questions
Question
1) Write simple instructions (simple program) that will add two consecutive
bytes of data storied with offset locations NUM and NUM+1, store the result
into the memory location NUM+2, using both:
a- Direct addressing mode
b- Indirect addressing mode or any mode
2) Write simple instructions (simple program) make 32-bit subtraction with
Nol:
Ах Вх
No2:
Cx Dx –
Result:
[SI] [DI]
3) Multiply Bl with the content of the memory location pointed by SI+30, store
the result into Dx?
4) Divide Bx over 7, store the result into Bx?
5) Rebuild the instructions
a- INC CX
b- SUB A1,02H
c- SUB AX,DX
6) Compare between SUB & CMP instructions
Transcribed Image Text:1) Write simple instructions (simple program) that will add two consecutive bytes of data storied with offset locations NUM and NUM+1, store the result into the memory location NUM+2, using both: a- Direct addressing mode b- Indirect addressing mode or any mode 2) Write simple instructions (simple program) make 32-bit subtraction with Nol: Ах Вх No2: Cx Dx – Result: [SI] [DI] 3) Multiply Bl with the content of the memory location pointed by SI+30, store the result into Dx? 4) Divide Bx over 7, store the result into Bx? 5) Rebuild the instructions a- INC CX b- SUB A1,02H c- SUB AX,DX 6) Compare between SUB & CMP instructions
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Fundamentals of Computer System
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
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning