Run Code
|
API
|
Code Wall
|
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
fsdffdasf
dssdffdsafsd
intfunct_64.asm
lec4bb
sdasdasad
sdffdsafdsfsda
Lec4b
lec4b.asm
helloworldgroup1
gsfgfdsgfdgfdf