source: documentation/trunk/packages/dokuwiki-2011-05-25a/inc/geshi/asm.php@ 25027

Last change on this file since 25027 was 25027, checked in by jmt12, 12 years ago

Adding the packages directory, and within it a configured version of dokuwiki all ready to run

File size: 10.6 KB
Line 
1<?php
2/*************************************************************************************
3 * asm.php
4 * -------
5 * Author: Tux ([email protected])
6 * Copyright: (c) 2004 Tux (http://tux.a4.cz/), Nigel McNie (http://qbnz.com/highlighter)
7 * Release Version: 1.0.8.8
8 * Date Started: 2004/07/27
9 *
10 * x86 Assembler language file for GeSHi.
11 * Words are from SciTe configuration file (based on NASM syntax)
12 *
13 * CHANGES
14 * -------
15 * 2008/05/23 (1.0.7.22)
16 * - Added description of extra language features (SF#1970248)
17 * 2004/11/27 (1.0.2)
18 * - Added support for multiple object splitters
19 * 2004/10/27 (1.0.1)
20 * - Added support for URLs
21 * - Added binary and hexadecimal regexps
22 * 2004/08/05 (1.0.0)
23 * - First Release
24 *
25 * TODO (updated 2004/11/27)
26 * -------------------------
27 *
28 *************************************************************************************
29 *
30 * This file is part of GeSHi.
31 *
32 * GeSHi is free software; you can redistribute it and/or modify
33 * it under the terms of the GNU General Public License as published by
34 * the Free Software Foundation; either version 2 of the License, or
35 * (at your option) any later version.
36 *
37 * GeSHi is distributed in the hope that it will be useful,
38 * but WITHOUT ANY WARRANTY; without even the implied warranty of
39 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
40 * GNU General Public License for more details.
41 *
42 * You should have received a copy of the GNU General Public License
43 * along with GeSHi; if not, write to the Free Software
44 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
45 *
46 ************************************************************************************/
47
48$language_data = array (
49 'LANG_NAME' => 'ASM',
50 'COMMENT_SINGLE' => array(1 => ';'),
51 'COMMENT_MULTI' => array(),
52 //Line address prefix suppression
53 'COMMENT_REGEXP' => array(2 => "/^(?:[0-9a-f]{0,4}:)?[0-9a-f]{4}(?:[0-9a-f]{4})?/mi"),
54 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
55 'QUOTEMARKS' => array("'", '"'),
56 'ESCAPE_CHAR' => '',
57 'KEYWORDS' => array(
58 /*CPU*/
59 1 => array(
60 'aaa','aad','aam','aas','adc','add','and','call','cbw','clc','cld','cli','cmc','cmp',
61 'cmps','cmpsb','cmpsw','cwd','daa','das','dec','div','esc','hlt','idiv','imul','in','inc',
62 'int','into','iret','ja','jae','jb','jbe','jc','jcxz','je','jg','jge','jl','jle','jmp',
63 'jna','jnae','jnb','jnbe','jnc','jne','jng','jnge','jnl','jnle','jno','jnp','jns','jnz',
64 'jo','jp','jpe','jpo','js','jz','lahf','lds','lea','les','lods','lodsb','lodsw','loop',
65 'loope','loopew','loopne','loopnew','loopnz','loopnzw','loopw','loopz','loopzw','mov',
66 'movs','movsb','movsw','mul','neg','nop','not','or','out','pop','popf','push','pushf',
67 'rcl','rcr','ret','retf','retn','rol','ror','sahf','sal','sar','sbb','scas','scasb','scasw',
68 'shl','shr','stc','std','sti','stos','stosb','stosw','sub','test','wait','xchg','xlat',
69 'xlatb','xor','bound','enter','ins','insb','insw','leave','outs','outsb','outsw','popa','pusha','pushw',
70 'arpl','lar','lsl','sgdt','sidt','sldt','smsw','str','verr','verw','clts','lgdt','lidt','lldt','lmsw','ltr',
71 'bsf','bsr','bt','btc','btr','bts','cdq','cmpsd','cwde','insd','iretd','iretdf','iretf',
72 'jecxz','lfs','lgs','lodsd','loopd','looped','loopned','loopnzd','loopzd','lss','movsd',
73 'movsx','movzx','outsd','popad','popfd','pushad','pushd','pushfd','scasd','seta','setae',
74 'setb','setbe','setc','sete','setg','setge','setl','setle','setna','setnae','setnb','setnbe',
75 'setnc','setne','setng','setnge','setnl','setnle','setno','setnp','setns','setnz','seto','setp',
76 'setpe','setpo','sets','setz','shld','shrd','stosd','bswap','cmpxchg','invd','invlpg','wbinvd','xadd','lock',
77 'rep','repe','repne','repnz','repz'
78 ),
79 /*FPU*/
80 2 => array(
81 'f2xm1','fabs','fadd','faddp','fbld','fbstp','fchs','fclex','fcom','fcomp','fcompp','fdecstp',
82 'fdisi','fdiv','fdivp','fdivr','fdivrp','feni','ffree','fiadd','ficom','ficomp','fidiv',
83 'fidivr','fild','fimul','fincstp','finit','fist','fistp','fisub','fisubr','fld','fld1',
84 'fldcw','fldenv','fldenvw','fldl2e','fldl2t','fldlg2','fldln2','fldpi','fldz','fmul',
85 'fmulp','fnclex','fndisi','fneni','fninit','fnop','fnsave','fnsavew','fnstcw','fnstenv',
86 'fnstenvw','fnstsw','fpatan','fprem','fptan','frndint','frstor','frstorw','fsave',
87 'fsavew','fscale','fsqrt','fst','fstcw','fstenv','fstenvw','fstp','fstsw','fsub','fsubp',
88 'fsubr','fsubrp','ftst','fwait','fxam','fxch','fxtract','fyl2x','fyl2xp1',
89 'fsetpm','fcos','fldenvd','fnsaved','fnstenvd','fprem1','frstord','fsaved','fsin','fsincos',
90 'fstenvd','fucom','fucomp','fucompp'
91 ),
92 /*registers*/
93 3 => array(
94 'ah','al','ax','bh','bl','bp','bx','ch','cl','cr0','cr2','cr3','cs','cx','dh','di','dl',
95 'dr0','dr1','dr2','dr3','dr6','dr7','ds','dx','eax','ebp','ebx','ecx','edi','edx',
96 'es','esi','esp','fs','gs','si','sp','ss','st','tr3','tr4','tr5','tr6','tr7'
97 ),
98 /*Directive*/
99 4 => array(
100 '186','286','286c','286p','287','386','386c','386p','387','486','486p',
101 '8086','8087','alpha','break','code','const','continue','cref','data','data?',
102 'dosseg','else','elseif','endif','endw','err','err1','err2','errb',
103 'errdef','errdif','errdifi','erre','erridn','erridni','errnb','errndef',
104 'errnz','exit','fardata','fardata?','if','lall','lfcond','list','listall',
105 'listif','listmacro','listmacroall',' model','no87','nocref','nolist',
106 'nolistif','nolistmacro','radix','repeat','sall','seq','sfcond','stack',
107 'startup','tfcond','type','until','untilcxz','while','xall','xcref',
108 'xlist','alias','align','assume','catstr','comm','comment','db','dd','df','dq',
109 'dt','dup','dw','echo','elseif1','elseif2','elseifb','elseifdef','elseifdif',
110 'elseifdifi','elseife','elseifidn','elseifidni','elseifnb','elseifndef','end',
111 'endm','endp','ends','eq',' equ','even','exitm','extern','externdef','extrn','for',
112 'forc','ge','goto','group','high','highword','if1','if2','ifb','ifdef','ifdif',
113 'ifdifi','ife',' ifidn','ifidni','ifnb','ifndef','include','includelib','instr','invoke',
114 'irp','irpc','label','le','length','lengthof','local','low','lowword','lroffset',
115 'macro','mask','mod','msfloat','name','ne','offset','opattr','option','org','%out',
116 'page','popcontext','private','proc','proto','ptr','public','purge','pushcontext','record',
117 'rept','seg','segment','short','size','sizeof','sizestr','struc','struct',
118 'substr','subtitle','subttl','textequ','this','title','typedef','union','width',
119 '.model', '.stack', '.code', '.data'
120 ),
121 /*Operands*/
122 5 => array(
123 '@b','@f','addr','basic','byte','c','carry?','dword',
124 'far','far16','fortran','fword','near','near16','overflow?','parity?','pascal','qword',
125 'real4',' real8','real10','sbyte','sdword','sign?','stdcall','sword','syscall','tbyte',
126 'vararg','word','zero?','flat','near32','far32',
127 'abs','all','assumes','at','casemap','common','compact',
128 'cpu','dotname','emulator','epilogue','error','export','expr16','expr32','farstack',
129 'forceframe','huge','language','large','listing','ljmp','loadds','m510','medium','memory',
130 'nearstack','nodotname','noemulator','nokeyword','noljmp','nom510','none','nonunique',
131 'nooldmacros','nooldstructs','noreadonly','noscoped','nosignextend','nothing',
132 'notpublic','oldmacros','oldstructs','os_dos','para','prologue',
133 'readonly','req','scoped','setif2','smallstack','tiny','use16','use32','uses'
134 )
135 ),
136 'SYMBOLS' => array(
137 '[', ']', '(', ')',
138 '+', '-', '*', '/', '%',
139 '.', ',', ';', ':'
140 ),
141 'CASE_SENSITIVE' => array(
142 GESHI_COMMENTS => false,
143 1 => false,
144 2 => false,
145 3 => false,
146 4 => false,
147 5 => false
148 ),
149 'STYLES' => array(
150 'KEYWORDS' => array(
151 1 => 'color: #00007f; font-weight: bold;',
152 2 => 'color: #0000ff; font-weight: bold;',
153 3 => 'color: #00007f;',
154 4 => 'color: #000000; font-weight: bold;',
155 5 => 'color: #000000; font-weight: bold;'
156 ),
157 'COMMENTS' => array(
158 1 => 'color: #666666; font-style: italic;',
159 2 => 'color: #adadad; font-style: italic;',
160 ),
161 'ESCAPE_CHAR' => array(
162 0 => 'color: #000099; font-weight: bold;'
163 ),
164 'BRACKETS' => array(
165 0 => 'color: #009900; font-weight: bold;'
166 ),
167 'STRINGS' => array(
168 0 => 'color: #7f007f;'
169 ),
170 'NUMBERS' => array(
171 0 => 'color: #0000ff;'
172 ),
173 'METHODS' => array(
174 ),
175 'SYMBOLS' => array(
176 0 => 'color: #339933;'
177 ),
178 'REGEXPS' => array(
179// 0 => 'color: #0000ff;',
180// 1 => 'color: #0000ff;'
181 ),
182 'SCRIPT' => array(
183 )
184 ),
185 'URLS' => array(
186 1 => '',
187 2 => '',
188 3 => '',
189 4 => '',
190 5 => ''
191 ),
192 'NUMBERS' =>
193 GESHI_NUMBER_BIN_PREFIX_PERCENT |
194 GESHI_NUMBER_BIN_SUFFIX |
195 GESHI_NUMBER_HEX_PREFIX |
196 GESHI_NUMBER_HEX_SUFFIX |
197 GESHI_NUMBER_OCT_SUFFIX |
198 GESHI_NUMBER_INT_BASIC |
199 GESHI_NUMBER_FLT_NONSCI |
200 GESHI_NUMBER_FLT_NONSCI_F |
201 GESHI_NUMBER_FLT_SCI_ZERO,
202 'OOLANG' => false,
203 'OBJECT_SPLITTERS' => array(
204 ),
205 'REGEXPS' => array(
206 //Hex numbers
207// 0 => /* */ "(?<=([\\s\\(\\)\\[\\],;.:+\\-\\/*]))(?:[0-9][0-9a-fA-F]{0,31}[hH]|0x[0-9a-fA-F]{1,32})(?=([\\s\\(\\)\\[\\],;.:+\\-\\/*]))",
208 //Binary numbers
209// 1 => "(?<=([\\s\\(\\)\\[\\],;.:+\\-\\/*]))[01]{1,64}[bB](?=([\\s\\(\\)\\[\\],;.:+\\-\\/*]))"
210 ),
211 'STRICT_MODE_APPLIES' => GESHI_NEVER,
212 'SCRIPT_DELIMITERS' => array(
213 ),
214 'HIGHLIGHT_STRICT_BLOCK' => array(
215 ),
216 'TAB_WIDTH' => 8,
217 'PARSER_CONTROL' => array(
218 'KEYWORDS' => array(
219 'DISALLOWED_BEFORE' => "(?<![a-zA-Z0-9\$_\|\#>|^])",
220 'DISALLOWED_AFTER' => "(?![a-zA-Z0-9_<\|%])"
221 )
222 )
223);
224
225?>
Note: See TracBrowser for help on using the repository browser.