A tumblelog CMS built on AJAX, PHP and MySQL.

mpasm.php 5.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. <?php
  2. /*************************************************************************************
  3. * mpasm.php
  4. * ---------
  5. * Author: Bakalex (bakalex@gmail.com)
  6. * Copyright: (c) 2004 Bakalex, Nigel McNie (http://qbnz.com/highlighter)
  7. * Release Version: 1.0.7.21
  8. * Date Started: 2004/12/6
  9. *
  10. * Microchip Assembler language file for GeSHi.
  11. *
  12. * CHANGES
  13. * -------
  14. * 2005/01/29 (1.0.0)
  15. * - First Release
  16. *
  17. * TODO (updated 2005/12/6)
  18. * -------------------------
  19. *
  20. * For the moment, i've only added PIC16C6X registers. We need more (PIC16F/C7x/8x,
  21. * PIC10, PIC18 and dsPIC registers).
  22. * Must take a look to dsPIC instructions.
  23. *
  24. *************************************************************************************
  25. *
  26. * This file is part of GeSHi.
  27. *
  28. * GeSHi is free software; you can redistribute it and/or modify
  29. * it under the terms of the GNU General Public License as published by
  30. * the Free Software Foundation; either version 2 of the License, or
  31. * (at your option) any later version.
  32. *
  33. * GeSHi is distributed in the hope that it will be useful,
  34. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  35. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  36. * GNU General Public License for more details.
  37. *
  38. * You should have received a copy of the GNU General Public License
  39. * along with GeSHi; if not, write to the Free Software
  40. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  41. *
  42. ************************************************************************************/
  43. $language_data = array (
  44. 'LANG_NAME' => 'Microchip Assembler',
  45. 'COMMENT_SINGLE' => array(1 => ';'),
  46. 'COMMENT_MULTI' => array(),
  47. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  48. 'QUOTEMARKS' => array("'", '"'),
  49. 'ESCAPE_CHAR' => '',
  50. 'KEYWORDS' => array(
  51. /*Directive Language*/
  52. 4 => array(
  53. 'CONSTANT', '#DEFINE', 'END', 'EQU', 'ERROR', 'ERROR-LEVEL', '#INCLUDE', 'LIST',
  54. 'MESSG', 'NOLIST', 'ORG', 'PAGE', 'PROCESSOR', 'RADIX', 'SET', 'SPACE', 'SUBTITLE',
  55. 'TITLE', '#UNDEFINE', 'VARIABLE', 'ELSE', 'ENDIF', 'ENDW', 'IF', 'IFDEF', 'IFNDEF',
  56. 'WHILE', '__BADRAM', 'CBLOCK', '__CONFIG', 'DA', 'DATA', 'DB', 'DE', 'DT', 'DW',
  57. 'ENDC', 'FILL', '__IDLOCS', '__MAXRAM', 'RES', 'ENDM', 'EXITM', 'EXPAND', 'LOCAL',
  58. 'MACRO', 'NOEXPAND', 'BANKISEL', 'BANKSEL', 'CODE', 'EXTERN', 'GLOBAL', 'IDATA',
  59. 'PAGESEL', 'UDATA', 'UDATA_ACS', 'UDATA_OVR', 'UDATA_SHR'
  60. ),
  61. /* 12&14-bit Specific Instruction Set*/
  62. 1 => array(
  63. 'andlw', 'call', 'clrwdt', 'goto', 'iorlw', 'movlw', 'option', 'retlw', 'sleep',
  64. 'tris', 'xorlw', 'addwf', 'andwf', 'clrf', 'clrw', 'comf', 'decf', 'decfsz', 'incf',
  65. 'incfsz', 'iorwf', 'movf', 'movwf', 'nop', 'rlf', 'rrf', 'subwf', 'swapf', 'xorwf',
  66. 'bcf', 'bsf', 'btfsc', 'btfss',
  67. 'addlw', 'iorlw', 'retfie', 'return', 'sublw', 'xorlw', 'addcf', 'adddcf', 'b', 'bc', 'bdc',
  68. 'bnc', 'bndc', 'bnz', 'bz', 'clrc', 'clrdc', 'clrz', 'lcall', 'lgoto', 'movfw',
  69. 'negf', 'setc', 'setdc', 'setz', 'skpc', 'skpdc', 'skpnc', 'skpndc', 'skpnz', 'skpz',
  70. 'subcf', 'subdcf', 'tstf'
  71. ),
  72. /* 16-bit Specific Instructiob Set */
  73. 2 => array (
  74. 'movfp', 'movlb', 'movlp', 'movpf', 'movwf', 'tablrd', 'tablwt', 'tlrd', 'tlwt',
  75. 'addwfc', 'daw', 'mullw', 'negw', 'rlcf', 'rlncf', 'rrcf', 'rrncf', 'setf', 'subwfb',
  76. 'btg', 'cpfseq', 'cpfsgt', 'cpfslt', 'dcfsnz', 'infsnz', 'tstfsz', 'lfsr', 'bnn',
  77. 'bnov', 'bra', 'pop', 'push', 'rcall', 'reset'
  78. ),
  79. /* Registers */
  80. 3 => array(
  81. 'INDF', 'TMR0', 'PCL', 'STATUS', 'FSR', 'PORTA', 'PORTB', 'PORTC', 'PORTD', 'PORTE',
  82. 'PCLATH', 'INTCON', 'PIR1', 'PIR2', 'TMR1L', 'TMR1H', 'T1CON', 'TMR2', 'T2CON', 'TMR2L',
  83. 'TMR2H', 'TMR0H', 'TMR0L', 'SSPBUF', 'SSPCON', 'CCPR1L', 'CCPR1H', 'CCP1CON', 'RCSTA',
  84. 'TXREG', 'RCREG', 'CCPR2L', 'CCPR2H', 'CCP2CON', 'OPTION', 'TRISA', 'TRISB', 'TRISC',
  85. 'TRISD', 'TRISE', 'PIE2', 'PIE1', 'PR2', 'SSPADD', 'SSPSTAT', 'TXSTA', 'SPBRG'
  86. ),
  87. /*Operands*/
  88. 5 => array(
  89. 'high','low'
  90. )
  91. ),
  92. 'SYMBOLS' => array(
  93. '[', ']', '(', ')'
  94. ),
  95. 'CASE_SENSITIVE' => array(
  96. GESHI_COMMENTS => true,
  97. 1 => false,
  98. 2 => false,
  99. 3 => false,
  100. 4 => false,
  101. 5 => false
  102. ),
  103. 'STYLES' => array(
  104. 'KEYWORDS' => array(
  105. 1 => 'color: #00007f;',
  106. 2 => 'color: #0000ff;',
  107. 3 => 'color: #007f00;',
  108. 4 => 'color: #46aa03; font-weight:bold;',
  109. 5 => 'color: #7f0000;',
  110. 6 => 'color: #7f0000;'
  111. ),
  112. 'COMMENTS' => array(
  113. 1 => 'color: #adadad; font-style: italic;',
  114. ),
  115. 'ESCAPE_CHAR' => array(
  116. 0 => 'color: #000099; font-weight: bold;'
  117. ),
  118. 'BRACKETS' => array(
  119. 0 => 'color: #66cc66;'
  120. ),
  121. 'STRINGS' => array(
  122. 0 => 'color: #7f007f;'
  123. ),
  124. 'NUMBERS' => array(
  125. 0 => 'color: #ff0000;'
  126. ),
  127. 'METHODS' => array(
  128. ),
  129. 'SYMBOLS' => array(
  130. 0 => 'color: #66cc66;'
  131. ),
  132. 'REGEXPS' => array(
  133. 0 => 'color: #ff0000;',
  134. 1 => 'color: #ff0000;'
  135. ),
  136. 'SCRIPT' => array(
  137. )
  138. ),
  139. 'URLS' => array(
  140. 1 => '',
  141. 2 => ''
  142. ),
  143. 'OOLANG' => false,
  144. 'OBJECT_SPLITTERS' => array(
  145. ),
  146. 'REGEXPS' => array(
  147. 0 => '[0-9a-fA-F]{1,32}[hH]',
  148. 1 => '[01]{1,64}[bB]'
  149. ),
  150. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  151. 'SCRIPT_DELIMITERS' => array(
  152. ),
  153. 'HIGHLIGHT_STRICT_BLOCK' => array(
  154. )
  155. );
  156. ?>