diff options
author | Franciszek Malinka <franciszek.malinka@gmail.com> | 2021-04-22 21:14:19 +0200 |
---|---|---|
committer | Franciszek Malinka <franciszek.malinka@gmail.com> | 2021-04-22 21:14:19 +0200 |
commit | 7dd4ef3c7c724badfe66a027ea3289d12ec0da46 (patch) | |
tree | 7c1884be3fdd346e6c028c38d913ecd6f43ef9e2 /Semestr 4/ask/lista7/eval.s | |
parent | 377e57cd3c1cc8de67344eeeb22e4855c77f0707 (diff) |
Ostatnie poprawki i testy routera
Diffstat (limited to 'Semestr 4/ask/lista7/eval.s')
-rw-r--r-- | Semestr 4/ask/lista7/eval.s | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Semestr 4/ask/lista7/eval.s b/Semestr 4/ask/lista7/eval.s new file mode 100644 index 0000000..f7340a0 --- /dev/null +++ b/Semestr 4/ask/lista7/eval.s @@ -0,0 +1,18 @@ + .global eval + + .text +eval: + movq %rdi, %rax + movq 16(%rsp), %rcx + movq 24(%rsp), %rdx + movq (%rdx), %rsi + movq %rcx, %rdx + imulq %rsi, %rdx + movq %rdx, (%rdi) + movq 8(%rsp), %rdx + movq %rdx, %rdi + subq %rsi, %rdi + movq %rdi, 8(%rax) + subq %rcx, %rdx + movq %rdx, 16(%rax) + ret
\ No newline at end of file |