Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
FirstProgram
;nasm global _start section .data message: db 'Hello',10,'world!',10,'This is Group 6',10,'nice to meet you!',10 ; 'Hello world!' plus a linefeed character section .text _start: mov rax,1 ; The system call for write mov rdi,1 ; argument #1 in rdi, where to write mov rsi, message ; argument #2 in rsi: where does the string start mov rdx,47 ; argument #3 in rdx: how many bytes to write syscall ; this instruction invokes a system call mov rax,60 ; 'exit' syscall number xor rdi,rdi ; rdi holds a 0 syscall ; invokes the system call
run
|
edit
|
history
|
help
0
lec4.asm
dsafdfdsfds
fib
inOut.asm
fdffdfdfdffd
scanf
lec4b.asm
displaying nine stars
index2
First Program Group Lab