aboutsummaryrefslogtreecommitdiffstats
path: root/travis/test
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2018-11-04 19:33:27 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2018-11-11 21:43:45 +0300
commit59cde89ba90b41780b4f35bd51c30611f157854e (patch)
tree6473e6c9754e10edc4afda74ff9bcfa0b52f5029 /travis/test
parent17968224531e018104eb5a668bdd8109a496cf5e (diff)
downloadnasm-59cde89ba90b41780b4f35bd51c30611f157854e.tar.gz
nasm-59cde89ba90b41780b4f35bd51c30611f157854e.tar.xz
nasm-59cde89ba90b41780b4f35bd51c30611f157854e.zip
test: nasm-t -- Add local test
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'travis/test')
-rw-r--r--travis/test/local.asm18
-rw-r--r--travis/test/local.bin.t1
-rw-r--r--travis/test/local.json11
3 files changed, 30 insertions, 0 deletions
diff --git a/travis/test/local.asm b/travis/test/local.asm
new file mode 100644
index 00000000..64a0e59a
--- /dev/null
+++ b/travis/test/local.asm
@@ -0,0 +1,18 @@
+ bits 32
+
+%push bluttan
+
+%define %$localsize 0
+
+%stacksize flat
+%local l1:qword, l2:dword, l3:dword, l4:qword
+%arg a1:qword, a2:dword, a3:dword, a4:qword
+
+ mov eax,[a1]
+ mov ebx,[a2]
+ mov ecx,[a3]
+ mov edx,[a4]
+ mov [l1],eax
+ mov [l2],ebx
+ mov [l3],ecx
+ mov [l4],edx
diff --git a/travis/test/local.bin.t b/travis/test/local.bin.t
new file mode 100644
index 00000000..148e6409
--- /dev/null
+++ b/travis/test/local.bin.t
@@ -0,0 +1 @@
+E]MUE]MU \ No newline at end of file
diff --git a/travis/test/local.json b/travis/test/local.json
new file mode 100644
index 00000000..0278b874
--- /dev/null
+++ b/travis/test/local.json
@@ -0,0 +1,11 @@
+[
+ {
+ "description": "Test local directive",
+ "id": "local",
+ "format": "bin",
+ "source": "local.asm",
+ "target": [
+ { "output": "local.bin" }
+ ]
+ }
+]