Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
hello.asm
global _start section .data message: db "hello",10 message1: db "world!",10 message2: db "This is group 6b,",10 message3: db "nice to meet you!",10 section .text _start: call _printHello call _printWorld call _printGroup call _printNice mov rax,60 ;'exit' syscall number xor rdi,rdi ;rdi holds a 0 syscall ;invokes the system call _printHello: mov rax, 1 mov rdi, 1 mov rsi, message mov rdx, 6 syscall ret _printWorld: mov rax, 1 mov rdi, 1 mov rsi, message1 mov rdx, 7 syscall ret _printGroup: mov rax, 1 mov rdi, 1 mov rsi, message2 mov rdx, 18 syscall ret _printNice: mov rax, 1 mov rdi, 1 mov rsi, message3 mov rdx, 18 syscall ret
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Exp1
Little endian n big endian
studenthello
lecture6-2
p2.asm
dKleinhen Lab #1
Block traspher
MyFirst Program
fib
lec4.asm
Please log in to post a comment.