Home / Expert Answers / Computer Science / convert-this-c-program-exactly-as-you-see-it-into-x86-assembly-language-use-the-irvine-libra-pa657

(Solved): Convert this C++ program exactly as you see it into x86 assembly language: // Use the Irvine libra ...



Convert this C++ program exactly as you see it into x86 assembly language:
// Use the Irvine library for the print function
#

Convert this C++ program exactly as you see it into x86 assembly language: // Use the Irvine library for the print function #include QUESTION 1 // The string that needs to be printed char word [] = "Golf\0"; // Pointer to a specific character in the string char character = word; // NOTE: This main () function is not portable outside of Visual Studio void main() { // Set up a LOOP- See the while loop's conditional expression below int ecx = 4; do { T following two lines of code: // Print the character // In x86 assembly language you must use the } // mov al, WHATEVER_CHARACTER_YOU_WANT_TO_PRIN // call WriteChar std::cout << *character; // Increment the pointer ++character; } while (--ecx != 0); // In x86 assembly language you must use the following line of code: // call CrLf std::cout << std::endl; // In x86 assembly language you must use the following line of code: Attach Fila // call WaitMsg system ("PAUSE");


We have an Answer from Expert

View Expert Answer

Expert Answer


Assembly code is value: .long 3 .LC0: .string " " .LC1: .string "PAUSE" main: push rbp mov rbp, rsp sub rsp, 16 mov DWORD PTR [rbp-4], 10 .L2: mov eax, DWORD PTR val
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe