aboutsummaryrefslogtreecommitdiffstats
path: root/x86_64
diff options
context:
space:
mode:
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
+