second sem

an anonymous user · February 23, 2021 · Assembly
section .data
msg db "hello world!"
section .text
global _start
mov rax,1  ;1-sys write 0-sys read
mov rdi,1  ;1-o/p device 0-i/p device
mov rsi,msg ;msg needs to be print
mov rdx,12 ;length of msg
syscall     ;grab the attention of the processor
mov rax,60  ;1-sys_exit
mov rdi,0   ;return 0 


Please sign up or log in to contribute to the discussion.