In the Windows search box in the Task bar, 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 \( x 86 \) assembly language section of this chapter. Build the program using the command shown in the \( x 86 \) assembly language section of this chapter and run it. Verify that the output Hello, Computer Architect! appears on the screen. 2) Write an \( x 86 \) assembly language program that computes the following expression and prints the result as a hexadecimal number: \( [(129-66) \times(445 \) \( +136)] \div 3 \). As part of this program, create a callable function to print 1 byte as two hex digits.
3) In the Windows search box in the Task bar, begin typing x64 Native Tools Command Prompt for VS 2022. When the app appears in the search menu, select it to open Command Prompt. Create a file named hello_x64. asm with the content shown in the source listing in the \( x 64 \) assembly language section of this chapter. Build the program using the command shown in the x64 assembly language section of this chapter and run it. Verify that the output Hello, Computer Architect! appears on the screen. 4) Write an x64 assembly language program that computes the following expression and prints the result as a hexadecimal number: \( [(129-66) \times(445 \) \( +136)] \div 3 \). As part of this program, create a callable function to print 1 byte as two hex digits.
.text .global_start _start: // Print the message to file 1 (stdout) with syscall 64 mov \( \quad x 0, \# 1 \) Idr \( \quad x 1,=m s g \) mov \( \quad x 2 \), \#msg_len mov \( \quad x 8 \), \#64 svc \( \quad 0 \) I/ Exit the program with syscall 93, returning status 0 mov \( \quad x 0 \), \#0 mov \( \quad x 8 \), \#93 svc \( \quad 0 \) data msg: .ascii \( \quad \) "Hello, Computer Architect!" msg_len \( = \). - msg