File: address.syntax

package info (click to toggle)
intel2gas 1.3.3-13
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 460 kB
  • ctags: 130
  • sloc: cpp: 1,286; makefile: 83
file content (92 lines) | stat: -rw-r--r-- 1,668 bytes parent folder | download | duplicates (11)
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# converts addresses in [] to gas style
# doesn't support segment override
# only quite simple expressions, and only one way
# like 5+4*ecx won't work, but ecx*4+5 will, add more if you need
-
<reg:08> : <address>
%<reg>:<address>
-
<mathnum>[ <reg>
<mathnum>(%<reg>)
-
<mathnum>[ <reg1> + <reg2>
<mathnum>(%<reg1>,%<reg2>,)
-
<mathnum>[ <reg> * <dec>
<mathnum>(,%<reg>,<dec>)
-
<mathnum>[ <reg1> + <reg2> * <dec>
<mathnum>(%<reg1>,%<reg2>,<dec>)
-
<mathnum>[ <reg1> + <dec> * <reg2>
<mathnum>(%<reg1>,%<reg2>,<dec>)
-
<mathnum>[ <reg> + <text>
<text>(%<reg>)
-
<mathnum>[ <reg> * <dec>+ <text>
<text>+<mathnum>(,%<reg>,<dec>)
-
<mathnum>[ <text>+ <reg> * <dec>
<text>+<mathnum>(,%<reg>,<dec>)
-

[ <mathnum>
($<mathnum>)
-
[ <reg>
(%<reg>)
-
[ <reg> <+-> <mathnum>
<sgn><mathnum>(%<reg>)
-
[ <reg1> + <reg2>
(%<reg1>,%<reg2>,)
-
[ <reg1> + <reg2> <+-> <mathnum>
<sgn><mathnum>(%<reg1>,%<reg2>,)
-
[ <reg> * <dec>
(,%<reg>,<dec>)
-
[ <reg1> + <reg2> * <dec>
(%<reg1>,%<reg2>,<dec>)
-
[ <reg1> + <dec> * <reg2>
(%<reg1>,%<reg2>,<dec>)
-
# <+-> doesn't work after <dec>
#<reg> * <dec> <+-> <mathnum>
#<sgn><mathnum>(,%<reg>,<dec>)
#-
#<reg1> + <reg2> * <dec> <+-> <mathnum>
#<sgn><mathnum>(%<reg1>,%<reg2>,<dec>)
#-

[ <reg1> + <reg2> * <dec>+ <mathnum>
<mathnum>(%<reg1>,%<reg2>,<dec>)
-
[ <reg1> + <reg2> * <dec>- <mathnum>
-<mathnum>(%<reg1>,%<reg2>,<dec>)
-
[ <reg> + <text>
<text>(%<reg>)
-
[ <reg> * <dec>+ <mathnum>
<mathnum>(,%<reg>,<dec>)
-
[ <reg> * <dec>+ <text>
<text>(,%<reg>,<dec>)
-

[ <text>+ <reg> * <dec>+ <mathnum>
<text>+<mathnum>(,%<reg>,<dec>)
-
[ <text>+ <reg> * <dec>
<text>(,%<reg>,<dec>)
-

# WARNING! This matches everything
[ <text>
<text>
-