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 (76 lines) | stat: -rw-r--r-- 1,321 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
# 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
-
<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>+ <mathnum>+ <reg> * <dec>
<text>+<mathnum>(,%<reg>,<dec>)
-
<text>+ <reg1> + <reg2> * <dec>
<text>(%<reg1>,%<reg2>,<dec>)
-
<text>+ <reg> * <dec>+ <mathnum>
<text>+<mathnum>(%<reg>,<dec>)
-
<text>+ <reg> * <dec>
<text>(%<reg>,<dec>)
-
<text>+ <reg>
<text>(%<reg>)
-
<text>+ <mathnum>
<text>+<mathnum>
-

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