diff options
author | Mattias Andrée <maandree@kth.se> | 2016-02-10 16:47:02 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-02-10 16:47:02 +0100 |
commit | 136e3443793df6c4738186920dfb2d87ac52a96b (patch) | |
tree | 814ffe88a9d51406486c082a0e1feb165650049e /x86_64 | |
download | optimised-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 '')
-rw-r--r-- | x86_64/false.s | 7 | ||||
-rw-r--r-- | x86_64/true.s | 7 |
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 + |