Question: Create a program using x 8 6 6 4 / GNU assembly syntax this is an example snippet of that: . section . data prompt:
Create a program using xGNU assembly syntax this is an example snippet of that: section data
prompt: asciz "Please enter a number:
output: asciz "You have entered:
section bss
buf: skip
section text
globl start
start:
mov $rdi # File descriptor: STDOUT
mov $prompt, rsi # Message to display
mov $rdx # Length of the message
mov $rax # System call number: write
syscall
mov $rdi # File descriptor: STDIN
mov $buf, rsi # Buffer to read into
mov $rdx # Maximum number of bytes to read
mov $rax # System call number: read
syscall
mov $rdi # File descriptor: STDOUT
mov $output, rsi # Message to display
mov $rdx # Length of the message
mov $rax # System call number: write
syscall I want the program to ask a user for a number than again for another number, then adds those numbers together and display it on the screen. For example: Enter a number:
Enter a number:
Heres the total:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
