asm.php

gehe zur Dokumentation dieser Datei
00001 <?php
00002 /*************************************************************************************
00003  * asm.php
00004  * -------
00005  * Author: Tux (tux@inmail.cz)
00006  * Copyright: (c) 2004 Tux (http://tux.a4.cz/), Nigel McNie (http://qbnz.com/highlighter)
00007  * Release Version: 1.0.7.20
00008  * Date Started: 2004/07/27
00009  *
00010  * x86 Assembler language file for GeSHi.
00011  * Words are from SciTe configuration file (based on NASM syntax)
00012  *
00013  * CHANGES
00014  * -------
00015  * 2004/11/27 (1.0.2)
00016  *  -  Added support for multiple object splitters
00017  * 2004/10/27 (1.0.1)
00018  *   -  Added support for URLs
00019  *   -  Added binary and hexadecimal regexps
00020  * 2004/08/05 (1.0.0)
00021  *   -  First Release
00022  *
00023  * TODO (updated 2004/11/27)
00024  * -------------------------
00025  *
00026  *************************************************************************************
00027  *
00028  *     This file is part of GeSHi.
00029  *
00030  *   GeSHi is free software; you can redistribute it and/or modify
00031  *   it under the terms of the GNU General Public License as published by
00032  *   the Free Software Foundation; either version 2 of the License, or
00033  *   (at your option) any later version.
00034  *
00035  *   GeSHi is distributed in the hope that it will be useful,
00036  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00037  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00038  *   GNU General Public License for more details.
00039  *
00040  *   You should have received a copy of the GNU General Public License
00041  *   along with GeSHi; if not, write to the Free Software
00042  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00043  *
00044  ************************************************************************************/
00045 
00046 $language_data = array (
00047      'LANG_NAME' => 'ASM',
00048      'COMMENT_SINGLE' => array(1 => ';'),
00049      'COMMENT_MULTI' => array(),
00050      'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
00051      'QUOTEMARKS' => array("'", '"'),
00052      'ESCAPE_CHAR' => '',
00053      'KEYWORDS' => array(
00054           /*CPU*/
00055           1 => array(
00056                  'aaa','aad','aam','aas','adc','add','and','call','cbw','clc','cld','cli','cmc','cmp',
00057                'cmps','cmpsb','cmpsw','cwd','daa','das','dec','div','esc','hlt','idiv','imul','in','inc',
00058                'int','into','iret','ja','jae','jb','jbe','jc','jcxz','je','jg','jge','jl','jle','jmp',
00059                'jna','jnae','jnb','jnbe','jnc','jne','jng','jnge','jnl','jnle','jno','jnp','jns','jnz',
00060                'jo','jp','jpe','jpo','js','jz','lahf','lds','lea','les','lods','lodsb','lodsw','loop',
00061                'loope','loopew','loopne','loopnew','loopnz','loopnzw','loopw','loopz','loopzw','mov',
00062                'movs','movsb','movsw','mul','neg','nop','not','or','out','pop','popf','push','pushf',
00063                'rcl','rcr','ret','retf','retn','rol','ror','sahf','sal','sar','sbb','scas','scasb','scasw',
00064                'shl','shr','stc','std','sti','stos','stosb','stosw','sub','test','wait','xchg','xlat',
00065                'xlatb','xor','bound','enter','ins','insb','insw','leave','outs','outsb','outsw','popa','pusha','pushw',
00066                'arpl','lar','lsl','sgdt','sidt','sldt','smsw','str','verr','verw','clts','lgdt','lidt','lldt','lmsw','ltr',
00067                'bsf','bsr','bt','btc','btr','bts','cdq','cmpsd','cwde','insd','iretd','iretdf','iretf',
00068                'jecxz','lfs','lgs','lodsd','loopd','looped','loopned','loopnzd','loopzd','lss','movsd',
00069                'movsx','movzx','outsd','popad','popfd','pushad','pushd','pushfd','scasd','seta','setae',
00070                'setb','setbe','setc','sete','setg','setge','setl','setle','setna','setnae','setnb','setnbe',
00071                'setnc','setne','setng','setnge','setnl','setnle','setno','setnp','setns','setnz','seto','setp',
00072                'setpe','setpo','sets','setz','shld','shrd','stosd','bswap','cmpxchg','invd','invlpg','wbinvd','xadd','lock',
00073                'rep','repe','repne','repnz','repz'
00074             ),
00075           /*FPU*/
00076           2 => array(
00077                  'f2xm1','fabs','fadd','faddp','fbld','fbstp','fchs','fclex','fcom','fcomp','fcompp','fdecstp',
00078                 'fdisi','fdiv','fdivp','fdivr','fdivrp','feni','ffree','fiadd','ficom','ficomp','fidiv',
00079                 'fidivr','fild','fimul','fincstp','finit','fist','fistp','fisub','fisubr','fld','fld1',
00080                 'fldcw','fldenv','fldenvw','fldl2e','fldl2t','fldlg2','fldln2','fldpi','fldz','fmul',
00081                 'fmulp','fnclex','fndisi','fneni','fninit','fnop','fnsave','fnsavew','fnstcw','fnstenv',
00082                 'fnstenvw','fnstsw','fpatan','fprem','fptan','frndint','frstor','frstorw','fsave',
00083                 'fsavew','fscale','fsqrt','fst','fstcw','fstenv','fstenvw','fstp','fstsw','fsub','fsubp',
00084                 'fsubr','fsubrp','ftst','fwait','fxam','fxch','fxtract','fyl2x','fyl2xp1',
00085                 'fsetpm','fcos','fldenvd','fnsaved','fnstenvd','fprem1','frstord','fsaved','fsin','fsincos',
00086                 'fstenvd','fucom','fucomp','fucompp'
00087               ),
00088           /*registers*/
00089           3 => array(
00090                'ah','al','ax','bh','bl','bp','bx','ch','cl','cr0','cr2','cr3','cs','cx','dh','di','dl',
00091                'dr0','dr1','dr2','dr3','dr6','dr7','ds','dx','eax','ebp','ebx','ecx','edi','edx',
00092                 'es','esi','esp','fs','gs','si','sp','ss','st','tr3','tr4','tr5','tr6','tr7', 'ah', 'bh', 'ch', 'dh'
00093                ),
00094           /*Directive*/
00095           4 => array(
00096                  '186','286','286c','286p','287','386','386c','386p','387','486','486p',
00097                 '8086','8087','alpha','break','code','const','continue','cref','data','data?',
00098                'dosseg','else','elseif','endif','endw','err','err1','err2','errb',
00099                 'errdef','errdif','errdifi','erre','erridn','erridni','errnb','errndef',
00100                 'errnz','exit','fardata','fardata?','if','lall','lfcond','list','listall',
00101                 'listif','listmacro','listmacroall',' model','no87','nocref','nolist',
00102                 'nolistif','nolistmacro','radix','repeat','sall','seq','sfcond','stack',
00103                  'startup','tfcond','type','until','untilcxz','while','xall','xcref',
00104                  'xlist','alias','align','assume','catstr','comm','comment','db','dd','df','dosseg','dq',
00105                  'dt','dup','dw','echo','else','elseif','elseif1','elseif2','elseifb','elseifdef','elseifdif',
00106                  'elseifdifi','elseife','elseifidn','elseifidni','elseifnb','elseifndef','end',
00107                  'endif','endm','endp','ends','eq',' equ','even','exitm','extern','externdef','extrn','for',
00108                  'forc','ge','goto','group','high','highword','if','if1','if2','ifb','ifdef','ifdif',
00109                  'ifdifi','ife',' ifidn','ifidni','ifnb','ifndef','include','includelib','instr','invoke',
00110                  'irp','irpc','label','le','length','lengthof','local','low','lowword','lroffset',
00111                  'macro','mask','mod','msfloat','name','ne','offset','opattr','option','org','%out',
00112                  'page','popcontext','proc','proto','ptr','public','purge','pushcontext','record',
00113                  'repeat','rept','seg','segment','short','size','sizeof','sizestr','struc','struct',
00114                  'substr','subtitle','subttl','textequ','this','title','type','typedef','union','while','width',
00115                  '.model', '.stack', '.code', '.data'
00116 
00117               ),
00118 
00119           /*Operands*/
00120           5 => array(
00121                 '@b','@f','addr','basic','byte','c','carry?','dword',
00122                 'far','far16','fortran','fword','near','near16','overflow?','parity?','pascal','qword',
00123                 'real4',' real8','real10','sbyte','sdword','sign?','stdcall','sword','syscall','tbyte',
00124                 'vararg','word','zero?','flat','near32','far32',
00125                 'abs','all','assumes','at','casemap','common','compact',
00126                 'cpu','dotname','emulator','epilogue','error','export','expr16','expr32','farstack','flat',
00127                 'forceframe','huge','language','large','listing','ljmp','loadds','m510','medium','memory',
00128                 'nearstack','nodotname','noemulator','nokeyword','noljmp','nom510','none','nonunique',
00129                 'nooldmacros','nooldstructs','noreadonly','noscoped','nosignextend','nothing',
00130                 'notpublic','oldmacros','oldstructs','os_dos','para','private','prologue','radix',
00131                 'readonly','req','scoped','setif2','smallstack','tiny','use16','use32','uses'
00132                )
00133           ),
00134      'SYMBOLS' => array(
00135           '[', ']', '(', ')'
00136           ),
00137      'CASE_SENSITIVE' => array(
00138           GESHI_COMMENTS => true,
00139           1 => false,
00140           2 => false,
00141           3 => false,
00142           4 => false,
00143           5 => false
00144           ),
00145      'STYLES' => array(
00146           'KEYWORDS' => array(
00147                1 => 'color: #00007f;',
00148                2 => 'color: #0000ff;',
00149                3 => 'color: #46aa03; font-weight:bold;',
00150                4 => 'color: #0000ff;',
00151                5 => 'color: #0000ff;'
00152                ),
00153           'COMMENTS' => array(
00154                1 => 'color: #adadad; font-style: italic;',
00155                ),
00156           'ESCAPE_CHAR' => array(
00157                0 => 'color: #000099; font-weight: bold;'
00158                ),
00159           'BRACKETS' => array(
00160                0 => 'color: #66cc66;'
00161                ),
00162           'STRINGS' => array(
00163                0 => 'color: #7f007f;'
00164                ),
00165           'NUMBERS' => array(
00166                0 => 'color: #ff0000;'
00167                ),
00168           'METHODS' => array(
00169                ),
00170           'SYMBOLS' => array(
00171                0 => 'color: #66cc66;'
00172                ),
00173           'REGEXPS' => array(
00174                0 => 'color: #ff0000;',
00175                1 => 'color: #ff0000;'
00176                ),
00177           'SCRIPT' => array(
00178                )
00179           ),
00180      'URLS' => array(
00181           1 => '',
00182           2 => ''
00183           ),
00184      'OOLANG' => false,
00185      'OBJECT_SPLITTERS' => array(
00186           ),
00187      'REGEXPS' => array(
00188           0 => '0[0-9a-fA-F]{1,32}[hH]',
00189           1 => '[01]{1,64}[bB]'
00190           ),
00191      'STRICT_MODE_APPLIES' => GESHI_NEVER,
00192      'SCRIPT_DELIMITERS' => array(
00193           ),
00194      'HIGHLIGHT_STRICT_BLOCK' => array(
00195         ),
00196     'TAB_WIDTH' => 8
00197 );
00198 
00199 ?>

Erzeugt am Thu May 14 00:55:48 2009 für OpenRat von  doxygen 1.5.8