summaryrefslogtreecommitdiff
path: root/test-suite/standalone/sassy/tests/localdata2.scm
diff options
context:
space:
mode:
Diffstat (limited to 'test-suite/standalone/sassy/tests/localdata2.scm')
-rw-r--r--test-suite/standalone/sassy/tests/localdata2.scm34
1 files changed, 34 insertions, 0 deletions
diff --git a/test-suite/standalone/sassy/tests/localdata2.scm b/test-suite/standalone/sassy/tests/localdata2.scm
new file mode 100644
index 000000000..60d2cb995
--- /dev/null
+++ b/test-suite/standalone/sassy/tests/localdata2.scm
@@ -0,0 +1,34 @@
+(import foo)
+
+(entry _start)
+
+(macro stdout 1)
+
+(text (label write ; fd buffer amount
+ (mov ebx (& esp 4))
+ (mov ecx (& esp 8))
+ (mov edx (& esp 12))
+ (mov eax 4)
+ (int #x80)
+ (ret)))
+
+(text (label exit
+ (mov eax 1)
+ (mov ebx 0)
+ (int #x80)))
+
+(text (label _start
+ (push 5) ;fd
+ (push foo) ;buffer
+ (push stdout) ;amount
+ (call write)
+ (add esp 12)
+ (push 5) ;fd
+ (push (& foo 16));buffer - in this case its the pointer to the local foo
+ (push stdout)
+ (call write)
+ (call exit)))
+
+
+
+