Merging the updates from the GeSHi vendor to the trunk
[viewsvn.git] / includes / geshi / geshi / mpasm.php
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.19
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
44 $language_data = array (
45 'LANG_NAME' => 'Microchip 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 /*Directive Language*/
53 4 => array(
54 'CONSTANT', '#DEFINE', 'END', 'EQU', 'ERROR', 'ERROR-LEVEL', '#INCLUDE', 'LIST',
55 'MESSG', 'NOLIST', 'ORG', 'PAGE', 'PROCESSOR', 'RADIX', 'SET', 'SPACE', 'SUBTITLE',
56 'TITLE', '#UNDEFINE', 'VARIABLE', 'ELSE', 'ENDIF', 'ENDW', 'IF', 'IFDEF', 'IFNDEF',
57 'WHILE', '__BADRAM', 'CBLOCK', '__CONFIG', 'DA', 'DATA', 'DB', 'DE', 'DT', 'DW',
58 'ENDC', 'FILL', '__IDLOCS', '__MAXRAM', 'RES', 'ENDM', 'EXITM', 'EXPAND', 'LOCAL',
59 'MACRO', 'NOEXPAND', 'BANKISEL', 'BANKSEL', 'CODE', 'EXTERN', 'GLOBAL', 'IDATA',
60 'PAGESEL', 'UDATA', 'UDATA_ACS', 'UDATA_OVR', 'UDATA_SHR'
61 ),
62 /* 12&14-bit Specific Instruction Set*/
63 1 => array(
64 'andlw', 'call', 'clrwdt', 'goto', 'iorlw', 'movlw', 'option', 'retlw', 'sleep',
65 'tris', 'xorlw', 'addwf', 'andwf', 'clrf', 'clrw', 'comf', 'decf', 'decfsz', 'incf',
66 'incfsz', 'iorwf', 'movf', 'movwf', 'nop', 'rlf', 'rrf', 'subwf', 'swapf', 'xorwf',
67 'bcf', 'bsf', 'btfsc', 'btfss',
68 'addlw', 'iorlw', 'retfie', 'return', 'sublw', 'xorlw', 'addcf', 'adddcf', 'b', 'bc', 'bdc',
69 'bnc', 'bndc', 'bnz', 'bz', 'clrc', 'clrdc', 'clrz', 'lcall', 'lgoto', 'movfw',
70 'negf', 'setc', 'setdc', 'setz', 'skpc', 'skpdc', 'skpnc', 'skpndc', 'skpnz', 'skpz',
71 'subcf', 'subdcf', 'tstf'
72 ),
73 /* 16-bit Specific Instructiob Set */
74 2 => array (
75 'movfp', 'movlb', 'movlp', 'movpf', 'movwf', 'tablrd', 'tablwt', 'tlrd', 'tlwt',
76 'addwfc', 'daw', 'mullw', 'negw', 'rlcf', 'rlncf', 'rrcf', 'rrncf', 'setf', 'subwfb',
77 'btg', 'cpfseq', 'cpfsgt', 'cpfslt', 'dcfsnz', 'infsnz', 'tstfsz', 'lfsr', 'bnn',
78 'bnov', 'bra', 'pop', 'push', 'rcall', 'reset'
79 ),
80 /* Registers */
81 3 => array(
82 'INDF', 'TMR0', 'PCL', 'STATUS', 'FSR', 'PORTA', 'PORTB', 'PORTC', 'PORTD', 'PORTE',
83 'PCLATH', 'INTCON', 'PIR1', 'PIR2', 'TMR1L', 'TMR1H', 'T1CON', 'TMR2', 'T2CON', 'TMR2L',
84 'TMR2H', 'TMR0H', 'TMR0L', 'SSPBUF', 'SSPCON', 'CCPR1L', 'CCPR1H', 'CCP1CON', 'RCSTA',
85 'TXREG', 'RCREG', 'CCPR2L', 'CCPR2H', 'CCP2CON', 'OPTION', 'TRISA', 'TRISB', 'TRISC',
86 'TRISD', 'TRISE', 'PIE2', 'PIE1', 'PR2', 'SSPADD', 'SSPSTAT', 'TXSTA', 'SPBRG'
87 ),
88 /*Operands*/
89 5 => array(
90 'high','low'
91 )
92 ),
93 'SYMBOLS' => array(
94 '[', ']', '(', ')'
95 ),
96 'CASE_SENSITIVE' => array(
97 GESHI_COMMENTS => true,
98 1 => false,
99 2 => false,
100 3 => false,
101 4 => false,
102 5 => false
103 ),
104 'STYLES' => array(
105 'KEYWORDS' => array(
106 1 => 'color: #00007f;',
107 2 => 'color: #0000ff;',
108 3 => 'color: #007f00;',
109 4 => 'color: #46aa03; font-weight:bold;',
110 5 => 'color: #7f0000;',
111 6 => 'color: #7f0000;'
112 ),
113 'COMMENTS' => array(
114 1 => 'color: #adadad; font-style: italic;',
115 ),
116 'ESCAPE_CHAR' => array(
117 0 => 'color: #000099; font-weight: bold;'
118 ),
119 'BRACKETS' => array(
120 0 => 'color: #66cc66;'
121 ),
122 'STRINGS' => array(
123 0 => 'color: #7f007f;'
124 ),
125 'NUMBERS' => array(
126 0 => 'color: #ff0000;'
127 ),
128 'METHODS' => array(
129 ),
130 'SYMBOLS' => array(
131 0 => 'color: #66cc66;'
132 ),
133 'REGEXPS' => array(
134 0 => 'color: #ff0000;',
135 1 => 'color: #ff0000;'
136 ),
137 'SCRIPT' => array(
138 )
139 ),
140 'URLS' => array(
141 1 => '',
142 2 => ''
143 ),
144 'OOLANG' => false,
145 'OBJECT_SPLITTERS' => array(
146 ),
147 'REGEXPS' => array(
148 0 => '[0-9a-fA-F][0-9a-fA-F]*[hH]',
149 1 => '[01][01]*[bB]'
150 ),
151 'STRICT_MODE_APPLIES' => GESHI_NEVER,
152 'SCRIPT_DELIMITERS' => array(
153 ),
154 'HIGHLIGHT_STRICT_BLOCK' => array(
155 )
156 );
157
158 ?>