aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/tools/yasm/modules/win64-nasm.c
blob: 6181cb2927b2d1460105823b6b3bc772d7ca1d36 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/* This file auto-generated from standard.mac by genmacro.c - don't edit it */ 
 
#include <stddef.h> 
 
static const char *win64_nasm_stdmac[] = { 
    "%imacro export 1+.nolist", 
    "[export %1]", 
    "%endmacro", 
    "%imacro proc_frame 1+.nolist", 
    "%1:", 
    "[proc_frame %1]", 
    "%endmacro", 
    "%imacro endproc_frame 0.nolist", 
    "[endproc_frame]", 
    "%endmacro", 
    "%imacro push_reg 1", 
    "push %1", 
    "[pushreg %1]", 
    "%endmacro", 
    "%imacro rex_push_reg 1", 
    "db 0x48", 
    "push %1", 
    "[pushreg %1]", 
    "%endmacro", 
    "%imacro push_eflags 0", 
    "pushfq", 
    "[allocstack 8]", 
    "%endmacro", 
    "%imacro rex_push_eflags 0", 
    "db 0x48", 
    "pushfq", 
    "[allocstack 8]", 
    "%endmacro", 
    "%imacro alloc_stack 1", 
    "sub rsp, %1", 
    "[allocstack %1]", 
    "%endmacro", 
    "%imacro save_reg 2", 
    "mov [rsp+%2], %1", 
    "[savereg %1 %2]", 
    "%endmacro", 
    "%imacro save_xmm128 2", 
    "movdqa [rsp+%2], %1", 
    "[savexmm128 %1 %2]", 
    "%endmacro", 
    "%imacro push_frame 0-1.nolist", 
    "[pushframe %1]", 
    "%endmacro", 
    "%imacro set_frame 1-2", 
    "%if %0==1", 
    "mov %1, rsp", 
    "%else", 
    "lea %1, [rsp+%2]", 
    "%endif", 
    "[setframe %1 %2]", 
    "%endmacro", 
    "%imacro end_prolog 0.nolist", 
    "[endprolog]", 
    "%endmacro", 
    "%imacro end_prologue 0.nolist", 
    "[endprolog]", 
    "%endmacro", 
    NULL 
};