mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-04-18 18:50:23 +08:00
test: nasm-t -- Add local test
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
1796822453
commit
59cde89ba9
18
travis/test/local.asm
Normal file
18
travis/test/local.asm
Normal 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
1
travis/test/local.bin.t
Normal file
@ -0,0 +1 @@
|
||||
‹E‹]‹M‹U‰Eø‰]ô‰Mð‰Uè
|
11
travis/test/local.json
Normal file
11
travis/test/local.json
Normal file
@ -0,0 +1,11 @@
|
||||
[
|
||||
{
|
||||
"description": "Test local directive",
|
||||
"id": "local",
|
||||
"format": "bin",
|
||||
"source": "local.asm",
|
||||
"target": [
|
||||
{ "output": "local.bin" }
|
||||
]
|
||||
}
|
||||
]
|
Loading…
x
Reference in New Issue
Block a user