From 93f6e81f8d56eb034117d2eb14a2cd89a337d179 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20A=2E=20Ortega?= Date: Wed, 21 Sep 2016 10:36:46 +0200 Subject: [PATCH] Use movq instead of just mov. --- src/helloworld.asm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/helloworld.asm b/src/helloworld.asm index 7c3727b..6af64f3 100644 --- a/src/helloworld.asm +++ b/src/helloworld.asm @@ -8,12 +8,12 @@ hello_end: .global _start _start: - mov $1, %rax # Define write syscall - mov $1, %rdi # Define stdout - mov $hello, %rsi # Give string - mov $hello_len, %rdx # Give size of the string + movq $1, %rax # Define write syscall + movq $1, %rdi # Define stdout + movq $hello, %rsi # Give string + movq $hello_len, %rdx # Give size of the string syscall # Call the kernel to do work for us - mov $60, %rax # Define exit syscall - mov $0, %rdi # Give return value + movq $60, %rax # Define exit syscall + movq $0, %rdi # Give return value syscall # Call the kernel to do work for us