QUESTION 2 Convert the following C++ program into an x86 assembly language program. Comment the start of each "code bloc

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

QUESTION 2 Convert the following C++ program into an x86 assembly language program. Comment the start of each "code bloc

Post by answerhappygod »

Question 2 Convert The Following C Program Into An X86 Assembly Language Program Comment The Start Of Each Code Bloc 1
Question 2 Convert The Following C Program Into An X86 Assembly Language Program Comment The Start Of Each Code Bloc 1 (72.58 KiB) Viewed 8 times
QUESTION 2 Convert the following C++ program into an x86 assembly language program. Comment the start of each "code block" that performs one of the listed mathematical calculations. Comments go to the right of the actual code, all starting on the same column. Post ONLY your ASM file here to Blackboard when complete. // Global variables. char a = 5; short b int c = 11; int d = 13; // Code int main() { ત = -a; d b = static_cast<short> (a); c=static_cast<int> (b); a = a 3; d = static_cast<int> (a); static_cast<int> (b) + 17; // Move a into the eax register // Move b into the ebx register // Move c into the ecx register // Move d into the edx register // Call the DumpRegs function a = 19; b = 108; C = 77; d = 7; c = (a + b + c + d) + a + b + c; d = a + b c d = a + b + c // Move a into the eax register // Move b into the ebx register // Move c into the ecx register // Move d into the edx register // Call the DumpRegs function // Call the WaitMsg function } Attach File Browse Local Files d - a - a + b + a + d + c;
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply