Page 1 of 1

QUESTION 2 Convert this C++ program exactly as you see it into x86 assembly language: #include short array []

Posted: Sun Jul 10, 2022 11:30 am
by answerhappygod
Question 2 Convert This C Program Exactly As You See It Into X86 Assembly Language Include Iostream Short Array 1
Question 2 Convert This C Program Exactly As You See It Into X86 Assembly Language Include Iostream Short Array 1 (66.88 KiB) Viewed 60 times
QUESTION 2 Convert this C++ program exactly as you see it into x86 assembly language: #include <iostream> short array [] = { 8, short value = array; short sum = 0; void main() { } int ecx = 5; do { 3, 1, 4, 9 5, 7 2, 6, 10 }; std::cout << '+'; std::cout << *value; sum += *value; ++value; std::cout << '-' ; std::cout << *value; sum = *value; ++value; } while (--ecx != 0); std::cout << '=' ; std::cout << sum; std::cout << std::endl; system ("PAUSE");