Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
helloworld_fixed
;nasm global _start section .data message1: db 'Hello',10 ; 'Hello world!' plus a linefeed character message2: db 'world!',10 message3: db 'This is Group X,',10 message4: db 'nice to meet you!' section .text _start: mov rax,1 ; The system call for write mov rdi,1 ; argument #1 in rdi, where to write mov rsi, message1 ; argument #2 in rsi: where does the string start mov rdx,6 ; argument #3 in rdx: how many bytes to write syscall mov rax,1 ; The system call for write mov rdi,1 ; argument #1 in rdi, where to write mov rsi, message2 ; argument #2 in rsi: where does the string start mov rdx,7 ; argument #3 in rdx: how many bytes to write syscall mov rax,1 ; The system call for write mov rdi,1 ; argument #1 in rdi, where to write mov rsi, message3 ; argument #2 in rsi: where does the string start mov rdx,17 ; argument #3 in rdx: how many bytes to write syscall mov rax,1 ; The system call for write mov rdi,1 ; argument #1 in rdi, where to write mov rsi, message4 ; argument #2 in rsi: where does the string start mov rdx,17 ; argument #3 in rdx: how many bytes to write syscall mov rax, 60 mov rdi, 0 syscall ; this instruction invokes a system call
run
|
edit
|
history
|
help
0
fib
Output in a bit more true assembly
mult
MyFirst Program
sdasdasad
arithmetic
sdffdfsdafd
gfsdfgdgfdgdgfdfgd
MyFirst Program
helorasa