Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
funcs
;funcsfun.asm section .text global funcs sum: ; function long int sum(long int x, long int y) ; so simple, do not need to save anything mov rax, rdi ; get argument x add rax, rsi ; add argument y, x+y result in rax ret sub2: ; function long int sub(long int x, long int y) ; so simple, do not need to save anything mov rax, rdi ; get argument x sub rax, rsi ; subtract argument y, x-y result in rax ret mult2: ; function long int mult(long int x, long int y) ; so simple, do not need to save anything mov rax, rdi ; get argument x mov rdx, rsi mul rsi ; multiply argument y, x*y result in rax mov rsi, rax ret
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
calculate_age
First Program Group Lab
Group Lab 1
Macro String Output
Group Project (Group 4)
index1
text.asm
Little endian n big endian
dfhgjfsdsff
lec6-3
Please log in to post a comment.