aboutsummaryrefslogtreecommitdiffstats
path: root/x86_64
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-02-10 16:47:02 +0100
committerMattias Andrée <maandree@kth.se>2016-02-10 16:47:02 +0100
commit136e3443793df6c4738186920dfb2d87ac52a96b (patch)
tree814ffe88a9d51406486c082a0e1feb165650049e /x86_64
downloadoptimised-true-136e3443793df6c4738186920dfb2d87ac52a96b.tar.gz
optimised-true-136e3443793df6c4738186920dfb2d87ac52a96b.tar.bz2
optimised-true-136e3443793df6c4738186920dfb2d87ac52a96b.tar.xz
initial commit
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'x86_64')
-rw-r--r--x86_64/false.s7
-rw-r--r--x86_64/true.s7
2 files changed, 14 insertions, 0 deletions
diff --git a/x86_64/false.s b/x86_64/false.s
new file mode 100644
index 0000000..daa30a5
--- /dev/null
+++ b/x86_64/false.s
@@ -0,0 +1,7 @@
+.text
+.global _start
+_start:
+ mov $60,%rax /* 60 is exit(2) */
+ mov $1,%rdi /* return code 1 */
+ syscall
+
diff --git a/x86_64/true.s b/x86_64/true.s
new file mode 100644
index 0000000..571d858
--- /dev/null
+++ b/x86_64/true.s
@@ -0,0 +1,7 @@
+.text
+.global _start
+_start:
+ mov $60,%rax /* 60 is exit(2) */
+ xor %rdi,%rdi /* return code 0 */
+ syscall
+