You are manufacturing the complete setup and syscall
Assembly language
The program will prompt the user for their name and then say hello to them using their name. For example, the interactive console of Repl.it might look like:
> bash main.sh
Enter your name: *Lauren Cabello*
Hello,Lauren Cabello
>
You will not have a library of routines to call upon for the printing and reading. You are manufacturing the complete setup and syscall.
After you complete the reading, remember that .bss is for your variables that will receive data and .data is for fixed information, like prompts.
main.asm
section .bss
name: resb 32 ; 32 bytes for name
section .data
; YOUR PROMPTS AND LENGTHS HERE
section .text
global _start
_start:
;
; YOUR CODE HERE!
;
exit:
mov rax, 60 ; exit
mov rdi, 0 ; r
Step by step
Solved in 2 steps with 1 images