Evaluate (3b/2+c)*(6b-a) by writing the code in assembly. where a=2, b=3 and c=5. Write the equivalent C++...

50.1K

Verified Solution

Question

Programming

  1. Evaluate (3b/2+c)*(6b-a) by writing the code in assembly.

where a=2, b=3 and c=5.

  1. Write the equivalent C++ code in assembly language.

if (bx<= ax) && ( cx >dx )

{

ax = 5;

dx = 6;

}

NOTE: Only use 16 bit or 8 bitregisters like ax,bx,cx,dx or al,bl,cl,dl. You can either do thisusing loop statement or conditional or unconditional jmps inassembly language. Keep the code as simple as possible. Forquestion you need to use cmp in assembly language to compare thevalues. You need to ask from the user the values of ax,bx,cx and dxas input.

Answer & Explanation Solved by verified expert
4.4 Ratings (597 Votes)
push rbp mov rbp rsp sub rsp 16 mov DWORD PTR rbp4 2 mov DWORD PTR rbp8 3 mov DWORD PTR rbp12    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students