aboutsummaryrefslogtreecommitdiff
path: root/src/lib9/tas-386.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib9/tas-386.s')
-rw-r--r--src/lib9/tas-386.s6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib9/tas-386.s b/src/lib9/tas-386.s
new file mode 100644
index 00000000..7a62d2d3
--- /dev/null
+++ b/src/lib9/tas-386.s
@@ -0,0 +1,6 @@
+.globl _tas
+_tas:
+ movl $0xCAFEBABE, %eax
+ movl 4(%esp), %ecx
+ xchgl %eax, 0(%ecx)
+ ret