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.

168 lines
6.1KB

  1. <?php
  2. /*************************************************************************************
  3. * 68000devpac.php
  4. * -------
  5. * Author: Warren Willmey
  6. * Copyright: (c) 2010 Warren Willmey.
  7. * Release Version: 1.0.8.11
  8. * Date Started: 2010/06/09
  9. *
  10. * Motorola 68000 - HiSoft Devpac ST 2 Assembler language file for GeSHi.
  11. *
  12. * CHANGES
  13. * -------
  14. * 2010/07/22
  15. * - First Release
  16. *
  17. * TODO (updated 2010/07/22)
  18. * -------------------------
  19. *
  20. *************************************************************************************
  21. *
  22. * This file is part of GeSHi.
  23. *
  24. * GeSHi is free software; you can redistribute it and/or modify
  25. * it under the terms of the GNU General Public License as published by
  26. * the Free Software Foundation; either version 2 of the License, or
  27. * (at your option) any later version.
  28. *
  29. * GeSHi is distributed in the hope that it will be useful,
  30. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  31. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  32. * GNU General Public License for more details.
  33. *
  34. * You should have received a copy of the GNU General Public License
  35. * along with GeSHi; if not, write to the Free Software
  36. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  37. *
  38. ************************************************************************************/
  39. $language_data = array (
  40. 'LANG_NAME' => 'Motorola 68000 - HiSoft Devpac ST 2 Assembler format',
  41. 'COMMENT_SINGLE' => array(1 => ';'),
  42. 'COMMENT_MULTI' => array(),
  43. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  44. 'QUOTEMARKS' => array("'", '"'),
  45. 'ESCAPE_CHAR' => '',
  46. 'KEYWORDS' => array(
  47. /* Directives. */
  48. 1 => array(
  49. 'end', 'include', 'incbin', 'opt', 'even', 'cnop', 'dc.b', 'dc.w',
  50. 'dc.l', 'ds.b', 'ds.w', 'ds.l', 'dcb.b', 'dcb.w', 'dcb.l',
  51. 'fail', 'output', '__g2', 'rept', 'endr', 'list', 'nolist', 'plen',
  52. 'llen', 'ttl', 'subttl', 'spc', 'page', 'listchar', 'format',
  53. 'equ', 'equr', 'set', 'reg', 'rs.b', 'rs.w', 'rs.l', 'rsreset',
  54. 'rsset', '__rs', 'ifeq', 'ifne', 'ifgt', 'ifge', 'iflt', 'ifle', 'endc',
  55. 'ifd', 'ifnd', 'ifc', 'ifnc', 'elseif', 'iif', 'macro', 'endm', 'mexit',
  56. 'narg', '\@', 'section', 'text', 'data', 'bss', 'xdef', 'xref', 'org',
  57. 'offset', '__lk', 'comment',
  58. ),
  59. /* 68000 Opcodes. */
  60. 2 => array(
  61. 'abcd', 'add', 'adda', 'addi', 'addq', 'addx', 'and', 'andi',
  62. 'asl', 'asr', 'bcc', 'bchg', 'bclr', 'bcs', 'beq', 'bge',
  63. 'bgt', 'bhi', 'ble', 'bls', 'blt', 'bmi', 'bne', 'bpl',
  64. 'bra', 'bset', 'bsr', 'btst', 'bvc', 'bvs', 'chk', 'clr',
  65. 'cmp', 'cmpa', 'cmpi', 'cmpm', 'dbcc', 'dbcs', 'dbeq', 'dbf',
  66. 'dbge', 'dbgt', 'dbhi', 'dble', 'dbls', 'dblt', 'dbmi', 'dbne',
  67. 'dbpl', 'dbra', 'dbt', 'dbvc', 'dbvs', 'divs', 'divu', 'eor',
  68. 'eori', 'exg', 'ext','illegal','jmp', 'jsr', 'lea', 'link',
  69. 'lsl', 'lsr', 'move','movea','movem','movep','moveq', 'muls',
  70. 'mulu', 'nbcd', 'neg', 'negx', 'nop', 'not', 'or', 'ori',
  71. 'pea', 'reset', 'rol', 'ror', 'roxl', 'roxr', 'rte', 'rtr',
  72. 'rts', 'sbcd', 'scc', 'scs', 'seq', 'sf', 'sge', 'sgt',
  73. 'shi', 'sle', 'sls', 'slt', 'smi', 'sne', 'spl', 'st',
  74. 'stop', 'sub', 'suba', 'subi', 'subq', 'subx', 'svc', 'svs',
  75. 'swap', 'tas', 'trap','trapv', 'tst', 'unlk',
  76. ),
  77. /* oprand sizes. */
  78. 3 => array(
  79. 'b', 'w', 'l' , 's'
  80. ),
  81. /* 68000 Registers. */
  82. 4 => array(
  83. 'd0', 'd1', 'd2', 'd3', 'd4', 'd5', 'd6', 'd7',
  84. 'a0', 'a1', 'a2', 'a3', 'a4', 'a5', 'a6', 'a7', 'sp', 'usp', 'ssp',
  85. 'pc', 'ccr', 'sr',
  86. ),
  87. ),
  88. 'SYMBOLS' => array(
  89. // '[', ']', '(', ')', '{', '}', // These are already defined by GeSHi as BRACKETS.
  90. '+', '-', '~', '<<', '>>', '&',
  91. '!', '^', '*', '/', '=', '<', '>',
  92. ),
  93. 'CASE_SENSITIVE' => array(
  94. GESHI_COMMENTS => false,
  95. 1 => false,
  96. 2 => false,
  97. 3 => false,
  98. 4 => false,
  99. ),
  100. 'STYLES' => array(
  101. 'KEYWORDS' => array(
  102. 1 => 'color: #f08; font-weight:bold;',
  103. 2 => 'color: #00f; font-weight:bold;',
  104. 3 => 'color: #00f; font-weight:bold;',
  105. 4 => 'color: #080; font-weight:bold;',
  106. ),
  107. 'COMMENTS' => array(
  108. 1 => 'color: #999; font-style: italic;',
  109. ),
  110. 'ESCAPE_CHAR' => array(
  111. 0 => 'color: #009; font-weight: bold;'
  112. ),
  113. 'BRACKETS' => array(
  114. 0 => 'color: #000;'
  115. ),
  116. 'STRINGS' => array(
  117. 0 => 'color: #080;'
  118. ),
  119. 'NUMBERS' => array(
  120. GESHI_NUMBER_INT_BASIC => 'color: #f00;',
  121. GESHI_NUMBER_HEX_PREFIX_DOLLAR => 'color: #f00;',
  122. GESHI_NUMBER_BIN_PREFIX_PERCENT => 'color: #f00;',
  123. GESHI_NUMBER_OCT_PREFIX_AT => 'color: #f00;',
  124. ),
  125. 'METHODS' => array(
  126. ),
  127. 'SYMBOLS' => array(
  128. 0 => 'color: #080;'
  129. ),
  130. 'REGEXPS' => array(
  131. 0 => 'color: #933;'
  132. ),
  133. 'SCRIPT' => array(
  134. )
  135. ),
  136. 'URLS' => array(
  137. 1 => '',
  138. 2 => '',
  139. 3 => '',
  140. 4 => '',
  141. ),
  142. 'OOLANG' => false,
  143. 'OBJECT_SPLITTERS' => array(
  144. ),
  145. 'NUMBERS' =>
  146. GESHI_NUMBER_INT_BASIC |
  147. GESHI_NUMBER_HEX_PREFIX_DOLLAR |
  148. GESHI_NUMBER_OCT_PREFIX_AT |
  149. GESHI_NUMBER_BIN_PREFIX_PERCENT,
  150. 'REGEXPS' => array(
  151. //Labels may end in a colon.
  152. 0 => '(?<=\A\x20|\r|\n|^)[\._a-zA-Z][\._a-zA-Z0-9]*[\:]?[\s]'
  153. ),
  154. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  155. 'SCRIPT_DELIMITERS' => array(
  156. ),
  157. 'HIGHLIGHT_STRICT_BLOCK' => array(
  158. ),
  159. 'TAB_WIDTH' => 8,
  160. 'PARSER_CONTROL' => array(
  161. 'NUMBERS' => array(
  162. 'PRECHECK_RX' => '/[\da-fA-F\.\$\%\@]/'
  163. )
  164. )
  165. );
  166. ?>