-
Notifications
You must be signed in to change notification settings - Fork 1
/
agc.tmLanguage
139 lines (139 loc) · 5.11 KB
/
agc.tmLanguage
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>fileTypes</key>
<array>
<string>agc</string>
</array>
<key>name</key>
<string>AGC Assembly</string>
<key>patterns</key>
<array>
<dict>
<key>comment</key>
<string>Annotation comments</string>
<key>match</key>
<string>##.*</string>
<key>name</key>
<string>invalid.deprecated.agc_assembly</string>
</dict>
<dict>
<key>comment</key>
<string>Comments</string>
<key>match</key>
<string>#.*</string>
<key>name</key>
<string>comment.line.number-sign.agc_assembly</string>
</dict>
<dict>
<key>comment</key>
<string>Label</string>
<key>match</key>
<string>(^ ?[0-9A-Z\+\-\/\*\=\(\)\?\'\.\&\;\,]+)\b</string>
<key>name</key>
<string>variable.parameter.agc_assembly</string>
</dict>
<dict>
<key>comment</key>
<string>Block I Interpreter Opcodes</string>
<key>match</key>
<string>\b(ABS\*|AST,[12]|BOVF|COMP\**|COS\*|CROSS|DBSU|DMOVE\**|DTS|ITC\**|ITC[IQ]|LOAD|LODON|NOLOD|SHIFTL|SHIFTR|SMOVE\**|SQUARE|STZ|SWITCH|TEST|TMOVE|TRAD|TSLC|TSLT\**|TSRT\**|TSU|TTS|VMOVE\**|VSLT\**|VSQ|VSRT\**|VTS)(\b|$)</string>
<key>name</key>
<string>keyword.control.ags_assembly</string>
</dict>
<dict>
<key>comment</key>
<string>Block II Interpreter Opcodes</string>
<key>match</key>
<string>\b(ABS|ABVAL|ACOS|ARCCOS|ARCSIN|ASIN|AXC,[12]|AXT,[12]|BDDV\**|BDSU\**|BHIZ|BMN|BOFCLR|BOF|BOFF|BOFINV|BOFSET|BON|BONCLR|BONINV|BONSET|BOV|BOVB|BPL|BVSU\**|BZE|CALL|CALRB|CCALL\**|CGOTO\**|CLEAR|CLR|CLRGO|COS|COSINE|DAD\**|DCOMP|DDV\**|DLOAD\**|DMP\**|DMPR\**|DOT\**|DSQ|DSU\**|EXIT|GOTO|INCR,[12]|INVERT|INVGO|ITA|LXA,[12]|LXC,[12]|MXV\**|NORM\**|PDDL\**|PDVL\**|PUSH|ROUND|RTB|RVQ|SET|SETGO|SETPD|SIGN\**|SIN|SINE|SL[1234]|SL[1234]R|SL\**|SLOAD\**|SLR\**|SQRT|SR[1234]|SR[1234]R|SR\**|SRR\**|SSP\**|STADR|STCALL|STODL\**|STORE|STOVL\**|STQ|SXA,[12]|TAD\**|TIX,[12]|TLOAD\**|UNIT\**|V/SC\**|VAD\**|VCOMP|VDEF|VLOAD\**|VPROJ\**|VSL|VSL[\*1-8]|VSQ|VSR|VSR[\*1-8]|VSU\**|VXM\**|VXSC\**|VXV\**|XAD,[12]|XCHX,[12]|XSU,[12])(\b|$)</string>
<key>name</key>
<string>keyword.control.ags_assembly</string>
</dict>
<dict>
<key>comment</key>
<string>Block I Opcodes</string>
<key>match</key>
<string>\b(OVIND|XAQ)(\b|$)</string>
<key>name</key>
<string>keyword.control.ags_assembly</string>
</dict>
<dict>
<key>comment</key>
<string>Block II Opcodes</string>
<key>match</key>
<string>\b(-CCS|AD|ADS|AUG|BZF|BZMF|CA|CAE|CAF|CCS|COM|CS|DAS|DCA|DCOM|DCS|DDOUBL|DIM|DOUBLE|DTCB|DTCF|DV|DXCH|EDRUPT|EXTEND|INCR|INDEX|INHINT|LXCH|MASK|MP|MSU|NDX|NOOP|OVSK|QXCH|RAND|READ|RELINT|RESUME|RETURN|ROR|RXOR|SQUARE|SU|TC|TCR|TCAA|TCF|TS|WAND|WOR|WRITE|XCH|XLQ|XXALQ|ZL|ZQ)(\b|$)</string>
<key>name</key>
<string>keyword.control.ags_assembly</string>
</dict>
<dict>
<key>comment</key>
<string>Block I Directives</string>
<key>match</key>
<string>\b(-CADR|XCADR)(\b|$)</string>
<key>name</key>
<string>keyword.other.ags_assembly</string>
</dict>
<dict>
<key>comment</key>
<string>Block II Directives</string>
<key>match</key>
<string>\b(=|=MINUS|=ECADR|\-2CADR|\-GENADR|2BCADR|2CADR|2DEC\**|2FCADR|2OCT|ADRES|BANK|BBCON\**|BLOCK|BNKSUM|CADR|CHECK=|COUNT\**|DEC\**|EBANK=|ECADR|EQUALS|ERASE|FCADR|GENADR|MEMORY|MM|NV|OCT|OCTAL|REMADR|SBANK=|SETLOC|SUBRO|VN)(\b|$)</string>
<key>name</key>
<string>keyword.other.ags_assembly</string>
</dict>
<dict>
<key>comment</key>
<string>Block II Downlink Directives</string>
<key>match</key>
<string>\b(\-1DNADR|\-2DNADR|\-3DNADR|\-4DNADR|\-5DNADR|\-6DNADR|\-DNCHAN|\-DNPTR|1DNADR|2DNADR|3DNADR|4DNADR|5DNADR|6DNADR|DNCHAN|DNPTR)(\b|$)</string>
<key>name</key>
<string>keyword.other.ags_assembly</string>
</dict>
<dict>
<key>comment</key>
<string>Decimal Integers</string>
<key>match</key>
<string>\b([\+\-]?[0-9]+D)(\b|$)</string>
<key>name</key>
<string>constant.numeric.ags_assembly</string>
</dict>
<dict>
<key>comment</key>
<string>Octal Integers</string>
<key>match</key>
<string>\b([\+\-]?[0-7]+)(\b|$)</string>
<key>name</key>
<string>constant.numeric.ags_assembly</string>
</dict>
<dict>
<key>comment</key>
<string>Block I Registers</string>
<key>match</key>
<string>\b(D|Z|N|SL|BI|EDH|CLHP|HP|LP|ZI|IN0|IN1|IN2|IN3|IN4|IN5|OUT0|OUT1|OUT2|OUT3|OUT4|RIP)(\b|$)</string>
<key>name</key>
<string>variable.language.ags_assembly</string>
</dict>
<dict>
<key>comment</key>
<string>Block II Registers</string>
<key>match</key>
<string>\b(A|L|Q|EB|FB|Z|BB|ARUPT|LRUPT|QRUPT|ZRUPT|BBRUPT|BRUPT|CYR|SR|CYL|EDOP)(\b|$)</string>
<key>name</key>
<string>variable.language.ags_assembly</string>
</dict>
<dict>
<key>comment</key>
<string>Operators</string>
<key>match</key>
<string>\b(\+|\-|\,)([ \t\,]|\b|$)</string>
<key>name</key>
<string>keyword.operator.ags_assembly</string>
</dict>
</array>
<key>scopeName</key>
<string>source.agc_assembly</string>
<key>uuid</key>
<string>fb9fa55a-903a-4291-8e6f-bc8fbfafbe38</string>
</dict>
</plist>