Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
MyFirst Program
;nasm global _start section .data message: db 'Hello',10 ; 'Hello' plus a linefeed character message1: db 'world!', 10 ; 'world!' plus a linefeed character message2: db 'This is Group 6', 10 ; 'This is Group 6' plus a linefeed character message3: db 'nice to meet you!', 10 ; 'nice to meet you!' 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,6 ; argument #3 in rdx: how many bytes to write syscall ; this instruction invokes a system call 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,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, message2 ; argument #2 in rsi: where does the string start mov rdx,16 ; 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,18 ; argument #3 in rdx: how many bytes to write syscall mov rax, 60 xor rdi, rdi syscall
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
MyFirst Program
lec4bb.asm
run
index2
intmain.asm
recursive
fib
intfunct_64
sub
Compare data in AL and AH
Please log in to post a comment.