Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
hello.asm
;nasm 2.13.02 global _start section .data ;INITIALIZED DATA message: db 'hello world', 10 section .text ;UNINITIALIZED DATA _start: mov rax, 1 ;system call number should be stored in rax mov rdi, 1 ;arguement #1 in rdi; where to write (descriptor)? mov rsi, message ;argument #2 in rsi; where does the string start? mov rdx, 14 ;argument #3 in rdx, how many bytes to wrtie? syscall ;this instruction invokes a system call mov rax, 60 ; 'exit' syscall number xor rdi, rdi ;rdi holds a 0 syscall ;invokes system call
run
|
edit
|
history
|
help
0
FirstProgram_Completed
Exp1
dfsfdfsafdsf
khvkvkhkj
dsasdfdsdfs
fdsafdsfdsfsd
x
MyFirst Program
calculate_age
intfunct_64.asm