ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_asm8051.php
Go to the documentation of this file.
1 <?php
2 $BEAUT_PATH = realpath(".")."/Services/COPage/syntax_highlight/php";
3 if (!isset ($BEAUT_PATH)) return;
4 require_once("$BEAUT_PATH/Beautifier/HFile.php");
5  class HFile_asm8051 extends HFile{
6  function HFile_asm8051(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // 8051 Assembly
11 /*************************************/
12 // Flags
13 
14 $this->nocase = "1";
15 $this->notrim = "0";
16 $this->perl = "0";
17 
18 // Colours
19 
20 $this->colours = array("blue", "purple", "gray", "brown");
21 $this->quotecolour = "blue";
22 $this->blockcommentcolour = "green";
23 $this->linecommentcolour = "green";
24 
25 // Indent Strings
26 
27 $this->indent = array();
28 $this->unindent = array();
29 
30 // String characters and delimiters
31 
32 $this->stringchars = array("'");
33 $this->delimiters = array("#", "@", "$", "+", "-", "(", ")", "[", "]", ":", ";", "\"", "'", "<", ">", " ", ",", " ", ".", "?");
34 $this->escchar = "";
35 
36 // Comment settings
37 
38 $this->linecommenton = array(";");
39 $this->blockcommenton = array("/*");
40 $this->blockcommentoff = array("*/");
41 
42 // Keywords (keyword mapping to colour number)
43 
44 $this->keywords = array(
45  "ASEG" => "1",
46  "BSEG" => "1",
47  "COMMON" => "1",
48  "CSEG" => "1",
49  "DB" => "1",
50  "DBIT" => "1",
51  "DS" => "1",
52  "DSEG" => "1",
53  "DW" => "1",
54  "END" => "1",
55  "ENDIF" => "1",
56  "ENDMOD" => "1",
57  "ELSE" => "1",
58  "EQU" => "1",
59  "EXTERN" => "1",
60  "EXTRN" => "1",
61  "HIGH" => "1",
62  "ISEG" => "1",
63  "LOW" => "1",
64  "LSTPAG" => "1",
65  "MODULE" => "1",
66  "NAME" => "1",
67  "ORG" => "1",
68  "PAGE" => "1",
69  "PAGSIZ" => "1",
70  "PUBLIC" => "1",
71  "RSEG" => "1",
72  "SEGMENT" => "1",
73  "SET" => "1",
74  "TITEL" => "1",
75  "TITL" => "1",
76  "USING" => "1",
77  "XSEG" => "1",
78  "ACALL" => "2",
79  "ADD" => "2",
80  "ADDC" => "2",
81  "AJMP" => "2",
82  "ANL" => "2",
83  "CALL" => "2",
84  "CJNE" => "2",
85  "CLR" => "2",
86  "CPL" => "2",
87  "DA" => "2",
88  "DEC" => "2",
89  "DIV" => "2",
90  "DJNZ" => "2",
91  "INC" => "2",
92  "JB" => "2",
93  "JBC" => "2",
94  "JC" => "2",
95  "JMP" => "2",
96  "JNC" => "2",
97  "JNB" => "2",
98  "JNZ" => "2",
99  "JZ" => "2",
100  "LCALL" => "2",
101  "LJMP" => "2",
102  "MOV" => "2",
103  "MOVC" => "2",
104  "MOVX" => "2",
105  "MUL" => "2",
106  "NOP" => "2",
107  "ORL" => "2",
108  "POP" => "2",
109  "PUSH" => "2",
110  "RET" => "2",
111  "RETI" => "2",
112  "RL" => "2",
113  "RLC" => "2",
114  "RR" => "2",
115  "RRC" => "2",
116  "SETB" => "2",
117  "SJMP" => "2",
118  "SUBB" => "2",
119  "SWAP" => "2",
120  "XCH" => "2",
121  "XRL" => "2",
122  "A" => "3",
123  "AB" => "3",
124  "ACC" => "3",
125  "B" => "3",
126  "C" => "3",
127  "DPH" => "3",
128  "DPL" => "3",
129  "DPTR" => "3",
130  "R0" => "3",
131  "R1" => "3",
132  "R2" => "3",
133  "R3" => "3",
134  "R4" => "3",
135  "R5" => "3",
136  "R6" => "3",
137  "R7" => "3",
138  "SP" => "3",
139  "PSW" => "3",
140  "+" => "4",
141  "-" => "4",
142  "=" => "4",
143  "@" => "4",
144  "#" => "4",
145  "$" => "4",
146  "[" => "4",
147  "]" => "4");
148 
149 // Special extensions
150 
151 // Each category can specify a PHP function that returns an altered
152 // version of the keyword.
153 
154 
155 
156 $this->linkscripts = array(
157  "1" => "donothing",
158  "2" => "donothing",
159  "3" => "donothing",
160  "4" => "donothing");
161 }
162 
163 
164 function donothing($keywordin)
165 {
166  return $keywordin;
167 }
168 
169 }?>