A tumblelog CMS built on AJAX, PHP and MySQL.

asm.php 8.5KB

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