KXStudio Website https://kx.studio/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

m68k.php 4.6KB

11 years ago
11 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. <?php
  2. /*************************************************************************************
  3. * m68k.php
  4. * --------
  5. * Author: Benny Baumann (BenBE@omorphia.de)
  6. * Copyright: (c) 2007 Benny Baumann (http://www.omorphia.de/), Nigel McNie (http://qbnz.com/highlighter)
  7. * Release Version: 1.0.8.11
  8. * Date Started: 2007/02/06
  9. *
  10. * Motorola 68000 Assembler language file for GeSHi.
  11. *
  12. * Syntax definition as commonly used by the motorola documentation for the
  13. * MC68HC908GP32 Microcontroller (and maybe others).
  14. *
  15. * CHANGES
  16. * -------
  17. * 2008/05/23 (1.0.7.22)
  18. * - Added description of extra language features (SF#1970248)
  19. * 2007/06/02 (1.0.0)
  20. * - First Release
  21. *
  22. * TODO (updated 2007/06/02)
  23. * -------------------------
  24. *
  25. *************************************************************************************
  26. *
  27. * This file is part of GeSHi.
  28. *
  29. * GeSHi is free software; you can redistribute it and/or modify
  30. * it under the terms of the GNU General Public License as published by
  31. * the Free Software Foundation; either version 2 of the License, or
  32. * (at your option) any later version.
  33. *
  34. * GeSHi is distributed in the hope that it will be useful,
  35. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  36. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  37. * GNU General Public License for more details.
  38. *
  39. * You should have received a copy of the GNU General Public License
  40. * along with GeSHi; if not, write to the Free Software
  41. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  42. *
  43. ************************************************************************************/
  44. $language_data = array (
  45. 'LANG_NAME' => 'Motorola 68000 Assembler',
  46. 'COMMENT_SINGLE' => array(1 => ';'),
  47. 'COMMENT_MULTI' => array(),
  48. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  49. 'QUOTEMARKS' => array("'", '"'),
  50. 'ESCAPE_CHAR' => '',
  51. 'KEYWORDS' => array(
  52. /*CPU*/
  53. 1 => array(
  54. 'adc','add','ais','aix','and','asl','asr','bcc','bclr','bcs','beq',
  55. 'bge','bgt','bhcc','bhcs','bhi','bhs','bih','bil','bit','ble','blo',
  56. 'bls','blt','bmc','bmi','bms','bne','bpl','bra','brclr','brn',
  57. 'brset','bset','bsr','cbeq','clc','cli','clr','cmp','com','cphx',
  58. 'cpx','daa','dbnz','dec','div','eor','inc','jmp','jsr','lda','ldhx',
  59. 'ldx','lsl','lsr','mov','mul','neg','nop','nsa','ora','psha','pshh',
  60. 'pshx','pula','pulh','pulx','rol','ror','rsp','rti','rts','sbc',
  61. 'sec','sei','sta','sthx','stop','stx','sub','swi','tap','tax','tpa',
  62. 'tst','tsx','txa','txs','wait'
  63. ),
  64. /*registers*/
  65. 2 => array(
  66. 'a','h','x',
  67. 'hx','sp'
  68. ),
  69. /*Directive*/
  70. 3 => array(
  71. '#define','#endif','#else','#ifdef','#ifndef','#include','#undef',
  72. '.db','.dd','.df','.dq','.dt','.dw','.end','.org','equ'
  73. ),
  74. ),
  75. 'SYMBOLS' => array(
  76. ','
  77. ),
  78. 'CASE_SENSITIVE' => array(
  79. GESHI_COMMENTS => false,
  80. 1 => false,
  81. 2 => false,
  82. 3 => false,
  83. ),
  84. 'STYLES' => array(
  85. 'KEYWORDS' => array(
  86. 1 => 'color: #0000ff; font-weight:bold;',
  87. 2 => 'color: #0000ff;',
  88. 3 => 'color: #46aa03; font-weight:bold;'
  89. ),
  90. 'COMMENTS' => array(
  91. 1 => 'color: #adadad; font-style: italic;',
  92. ),
  93. 'ESCAPE_CHAR' => array(
  94. 0 => 'color: #000099; font-weight: bold;'
  95. ),
  96. 'BRACKETS' => array(
  97. 0 => 'color: #0000ff;'
  98. ),
  99. 'STRINGS' => array(
  100. 0 => 'color: #7f007f;'
  101. ),
  102. 'NUMBERS' => array(
  103. 0 => 'color: #dd22dd;'
  104. ),
  105. 'METHODS' => array(
  106. ),
  107. 'SYMBOLS' => array(
  108. 0 => 'color: #008000;'
  109. ),
  110. 'REGEXPS' => array(
  111. 0 => 'color: #22bbff;',
  112. 1 => 'color: #22bbff;',
  113. 2 => 'color: #993333;'
  114. ),
  115. 'SCRIPT' => array(
  116. )
  117. ),
  118. 'URLS' => array(
  119. 1 => '',
  120. 2 => '',
  121. 3 => ''
  122. ),
  123. 'OOLANG' => false,
  124. 'OBJECT_SPLITTERS' => array(
  125. ),
  126. 'REGEXPS' => array(
  127. //Hex numbers
  128. 0 => '#?0[0-9a-fA-F]{1,32}[hH]',
  129. //Binary numbers
  130. 1 => '\%[01]{1,64}[bB]',
  131. //Labels
  132. 2 => '^[_a-zA-Z][_a-zA-Z0-9]*?\:'
  133. ),
  134. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  135. 'SCRIPT_DELIMITERS' => array(
  136. ),
  137. 'HIGHLIGHT_STRICT_BLOCK' => array(
  138. ),
  139. 'TAB_WIDTH' => 8
  140. );
  141. ?>