Chapter 10: Modern Processor Architectures and Instruction Sets
Exercise 1
Install the free Visual Studio Community edition, available at https://visualstudio.microsoft.com/vs/community/, on a Windows PC. After installation is complete, open the Visual Studio IDE and select Get Tools and Features… under the Tools menu. Install the Desktop development with C++ workload:
- In the Windows search box in the taskbar, begin typing
Developer Command Prompt for VS 2022
. When the app appears in the search menu, select it to open Command Prompt. - Create a file named
hello_x86.asm
with the content shown in the source listing in the x86 assembly language section of Chapter 10, Modern Processor Architectures and Instruction Sets. - Build the program using the command shown in the x86 assembly language section of Chapter 10, Modern Processor Architectures and Instruction Sets, and run it. Verify that the output Hello, Computer Architect! appears on the screen.