test: nasm-t -- Add local test

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Cyrill Gorcunov 2018-11-04 19:33:27 +03:00
parent 1796822453
commit 59cde89ba9
3 changed files with 30 additions and 0 deletions

18
travis/test/local.asm Normal file
View File

@ -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

1
travis/test/local.bin.t Normal file
View File

@ -0,0 +1 @@
E]MU]ô

11
travis/test/local.json Normal file
View File

@ -0,0 +1,11 @@
[
{
"description": "Test local directive",
"id": "local",
"format": "bin",
"source": "local.asm",
"target": [
{ "output": "local.bin" }
]
}
]