summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2012-12-05 00:14:30 +0400
committerIgor Pashev <pashev.igor@gmail.com>2012-12-05 00:14:30 +0400
commit2652e156a2823a01b02e3ccdd7da106ea2778178 (patch)
tree01a30df96c41ae75065a862f47aa3df8c571b5ed
parenta421987655b205d76892c2ad9cbc95f6da43f246 (diff)
downloadgcd-2652e156a2823a01b02e3ccdd7da106ea2778178.tar.gz
Typo
-rw-r--r--assembler/gcd-x86_64-linux.s8
1 files changed, 4 insertions, 4 deletions
diff --git a/assembler/gcd-x86_64-linux.s b/assembler/gcd-x86_64-linux.s
index 9ea9460..cc85933 100644
--- a/assembler/gcd-x86_64-linux.s
+++ b/assembler/gcd-x86_64-linux.s
@@ -27,7 +27,7 @@ buf_end:
# uses: rax, rbx, rdx
gcd2:
and %rbx, %rbx # is %rbx == 0 ?
- jz gcd2_exit # %rbx == 0, go to rxit and return %rax (GCD)
+ jz gcd2_exit # %rbx == 0, go to exit and return %rax (GCD)
xor %rdx, %rdx # set %rdx = 0 */
div %rbx # divide: %rdx:%rax / %rbx, actually: %rax / %rbx
mov %rbx, %rax # drop quotient in %rax and keep prrvious %rbx in %rax
@@ -104,7 +104,7 @@ _start:
pop %rcx # Get the number of command-line options (4)
pop %rsi # Get the pointer to the program name (./gcd-x86_64-linux),
dec %rcx # minus program name
- jz exit # no arguments are given - rxiting
+ jz exit # no arguments are given - exiting
xor %rax, %rax
gcd_loop:
@@ -121,7 +121,7 @@ gcd_loop:
call print # print rax with GCD
exit:
- mov $1, %rax # rxit syscall
- xor %rbx, %rbx # rxit code = 0
+ mov $1, %rax # exit syscall
+ xor %rbx, %rbx # exit code = 0
int $0x80