[ Index ]
 

Code source de DokuWiki 2006-11-06

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/inc/geshi/ -> asm.php (source)

   1  <?php
   2  /*************************************************************************************
   3   * asm.php
   4   * -------
   5   * Author: Tux (tux@inmail.cz)
   6   * Copyright: (c) 2004 Tux (http://tux.a4.cz/), Nigel McNie (http://qbnz.com/highlighter)
   7   * Release Version: 1.0.7.15
   8   * CVS Revision Version: $Revision: 1.15.2.5 $
   9   * Date Started: 2004/07/27
  10   * Last Modified: $Date: 2006/09/23 02:05:46 $
  11   *
  12   * x86 Assembler language file for GeSHi.
  13   * Words are from SciTe configuration file (based on NASM syntax)
  14   *
  15   * CHANGES
  16   * -------
  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      'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  53      'QUOTEMARKS' => array("'", '"'),
  54      'ESCAPE_CHAR' => '',
  55      'KEYWORDS' => array(
  56          /*CPU*/
  57          1 => array(
  58                 'aaa','aad','aam','aas','adc','add','and','call','cbw','clc','cld','cli','cmc','cmp',
  59              'cmps','cmpsb','cmpsw','cwd','daa','das','dec','div','esc','hlt','idiv','imul','in','inc',
  60              'int','into','iret','ja','jae','jb','jbe','jc','jcxz','je','jg','jge','jl','jle','jmp',
  61              'jna','jnae','jnb','jnbe','jnc','jne','jng','jnge','jnl','jnle','jno','jnp','jns','jnz',
  62              'jo','jp','jpe','jpo','js','jz','lahf','lds','lea','les','lods','lodsb','lodsw','loop',
  63              'loope','loopew','loopne','loopnew','loopnz','loopnzw','loopw','loopz','loopzw','mov',
  64              'movs','movsb','movsw','mul','neg','nop','not','or','out','pop','popf','push','pushf',
  65              'rcl','rcr','ret','retf','retn','rol','ror','sahf','sal','sar','sbb','scas','scasb','scasw',
  66              'shl','shr','stc','std','sti','stos','stosb','stosw','sub','test','wait','xchg','xlat',
  67              'xlatb','xor','bound','enter','ins','insb','insw','leave','outs','outsb','outsw','popa','pusha','pushw',
  68              'arpl','lar','lsl','sgdt','sidt','sldt','smsw','str','verr','verw','clts','lgdt','lidt','lldt','lmsw','ltr',
  69              'bsf','bsr','bt','btc','btr','bts','cdq','cmpsd','cwde','insd','iretd','iretdf','iretf',
  70              'jecxz','lfs','lgs','lodsd','loopd','looped','loopned','loopnzd','loopzd','lss','movsd',
  71              'movsx','movzx','outsd','popad','popfd','pushad','pushd','pushfd','scasd','seta','setae',
  72              'setb','setbe','setc','sete','setg','setge','setl','setle','setna','setnae','setnb','setnbe',
  73              'setnc','setne','setng','setnge','setnl','setnle','setno','setnp','setns','setnz','seto','setp',
  74              'setpe','setpo','sets','setz','shld','shrd','stosd','bswap','cmpxchg','invd','invlpg','wbinvd','xadd','lock',
  75              'rep','repe','repne','repnz','repz'
  76            ),
  77          /*FPU*/
  78          2 => array(
  79                'f2xm1','fabs','fadd','faddp','fbld','fbstp','fchs','fclex','fcom','fcomp','fcompp','fdecstp',
  80               'fdisi','fdiv','fdivp','fdivr','fdivrp','feni','ffree','fiadd','ficom','ficomp','fidiv',
  81                  'fidivr','fild','fimul','fincstp','finit','fist','fistp','fisub','fisubr','fld','fld1',
  82               'fldcw','fldenv','fldenvw','fldl2e','fldl2t','fldlg2','fldln2','fldpi','fldz','fmul',
  83               'fmulp','fnclex','fndisi','fneni','fninit','fnop','fnsave','fnsavew','fnstcw','fnstenv',
  84               'fnstenvw','fnstsw','fpatan','fprem','fptan','frndint','frstor','frstorw','fsave',
  85               'fsavew','fscale','fsqrt','fst','fstcw','fstenv','fstenvw','fstp','fstsw','fsub','fsubp',
  86               'fsubr','fsubrp','ftst','fwait','fxam','fxch','fxtract','fyl2x','fyl2xp1',
  87               'fsetpm','fcos','fldenvd','fnsaved','fnstenvd','fprem1','frstord','fsaved','fsin','fsincos',
  88               'fstenvd','fucom','fucomp','fucompp'
  89              ),
  90          /*registers*/
  91          3 => array(
  92              'ah','al','ax','bh','bl','bp','bx','ch','cl','cr0','cr2','cr3','cs','cx','dh','di','dl',
  93              'dr0','dr1','dr2','dr3','dr6','dr7','ds','dx','eax','ebp','ebx','ecx','edi','edx',
  94               'es','esi','esp','fs','gs','si','sp','ss','st','tr3','tr4','tr5','tr6','tr7', 'ah', 'bh', 'ch', 'dh'
  95              ),
  96          /*Directive*/
  97          4 => array(
  98                '186','286','286c','286p','287','386','386c','386p','387','486','486p',
  99               '8086','8087','alpha','break','code','const','continue','cref','data','data?',
 100              'dosseg','else','elseif','endif','endw','err','err1','err2','errb',
 101               'errdef','errdif','errdifi','erre','erridn','erridni','errnb','errndef',
 102               'errnz','exit','fardata','fardata?','if','lall','lfcond','list','listall',
 103               'listif','listmacro','listmacroall',' model','no87','nocref','nolist',
 104               'nolistif','nolistmacro','radix','repeat','sall','seq','sfcond','stack',
 105                'startup','tfcond','type','until','untilcxz','while','xall','xcref',
 106                'xlist','alias','align','assume','catstr','comm','comment','db','dd','df','dosseg','dq',
 107                'dt','dup','dw','echo','else','elseif','elseif1','elseif2','elseifb','elseifdef','elseifdif',
 108                'elseifdifi','elseife','elseifidn','elseifidni','elseifnb','elseifndef','end',
 109                'endif','endm','endp','ends','eq',' equ','even','exitm','extern','externdef','extrn','for',
 110                'forc','ge','goto','group','high','highword','if','if1','if2','ifb','ifdef','ifdif',
 111                'ifdifi','ife',' ifidn','ifidni','ifnb','ifndef','include','includelib','instr','invoke',
 112                'irp','irpc','label','le','length','lengthof','local','low','lowword','lroffset',
 113                'macro','mask','mod','msfloat','name','ne','offset','opattr','option','org','%out',
 114                'page','popcontext','proc','proto','ptr','public','purge','pushcontext','record',
 115                'repeat','rept','seg','segment','short','size','sizeof','sizestr','struc','struct',
 116                'substr','subtitle','subttl','textequ','this','title','type','typedef','union','while','width',
 117                '.model', '.stack', '.code', '.data'
 118  
 119              ),
 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','flat',
 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','private','prologue','radix',
 133               'readonly','req','scoped','setif2','smallstack','tiny','use16','use32','uses'
 134              )
 135          ),
 136      'SYMBOLS' => array(
 137          '[', ']', '(', ')'
 138          ),
 139      'CASE_SENSITIVE' => array(
 140          GESHI_COMMENTS => true,
 141          1 => false,
 142          2 => false,
 143          3 => false,
 144          4 => false,
 145          5 => false
 146          ),
 147      'STYLES' => array(
 148          'KEYWORDS' => array(
 149              1 => 'color: #00007f;',
 150              2 => 'color: #0000ff;',
 151              3 => 'color: #46aa03; font-weight:bold;',
 152              4 => 'color: #0000ff;',
 153              5 => 'color: #0000ff;'
 154              ),
 155          'COMMENTS' => array(
 156              1 => 'color: #adadad; font-style: italic;',
 157              ),
 158          'ESCAPE_CHAR' => array(
 159              0 => 'color: #000099; font-weight: bold;'
 160              ),
 161          'BRACKETS' => array(
 162              0 => 'color: #66cc66;'
 163              ),
 164          'STRINGS' => array(
 165              0 => 'color: #7f007f;'
 166              ),
 167          'NUMBERS' => array(
 168              0 => 'color: #ff0000;'
 169              ),
 170          'METHODS' => array(
 171              ),
 172          'SYMBOLS' => array(
 173              0 => 'color: #66cc66;'
 174              ),
 175          'REGEXPS' => array(
 176              0 => 'color: #ff0000;',
 177              1 => 'color: #ff0000;'
 178              ),
 179          'SCRIPT' => array(
 180              )
 181          ),
 182      'URLS' => array(
 183          1 => '',
 184          2 => ''
 185          ),
 186      'OOLANG' => false,
 187      'OBJECT_SPLITTERS' => array(
 188          ),
 189      'REGEXPS' => array(
 190          0 => '0[0-9a-fA-F][0-9a-fA-F]*[hH]',
 191          1 => '[01][01]*[bB]'
 192          ),
 193      'STRICT_MODE_APPLIES' => GESHI_NEVER,
 194      'SCRIPT_DELIMITERS' => array(
 195          ),
 196      'HIGHLIGHT_STRICT_BLOCK' => array(
 197          )
 198  );
 199  
 200  ?>


Généré le : Tue Apr 3 20:47:31 2007 par Balluche grâce à PHPXref 0.7