ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_asm6502.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_asm6502 extends HFile{
6  function HFile_asm6502(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // ASM for 6502
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", "blue", "purple");
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  "ADC" => "1",
46  "AND" => "1",
47  "ASL" => "1",
48  "BCC" => "1",
49  "BCS" => "1",
50  "BEQ" => "1",
51  "BIT" => "1",
52  "BMI" => "1",
53  "BNE" => "1",
54  "BPL" => "1",
55  "BRA" => "1",
56  "BRK" => "1",
57  "BVC" => "1",
58  "BVS" => "1",
59  "CLC" => "1",
60  "CLD" => "1",
61  "CLI" => "1",
62  "CLV" => "1",
63  "CMP" => "1",
64  "CPX" => "1",
65  "CPY" => "1",
66  "DEC" => "1",
67  "DEX" => "1",
68  "DEY" => "1",
69  "EOR" => "1",
70  "INC" => "1",
71  "INX" => "1",
72  "INY" => "1",
73  "JMP" => "1",
74  "JSR" => "1",
75  "LDA" => "1",
76  "LDX" => "1",
77  "LDY" => "1",
78  "LSR" => "1",
79  "NOP" => "1",
80  "ORA" => "1",
81  "PHA" => "1",
82  "PHP" => "1",
83  "PHX" => "1",
84  "PHY" => "1",
85  "PLA" => "1",
86  "PLP" => "1",
87  "PLX" => "1",
88  "PLY" => "1",
89  "ROL" => "1",
90  "ROR" => "1",
91  "RTI" => "1",
92  "RTS" => "1",
93  "SBC" => "1",
94  "SEC" => "1",
95  "SED" => "1",
96  "SEI" => "1",
97  "STA" => "1",
98  "STX" => "1",
99  "STY" => "1",
100  "STZ" => "1",
101  "TAX" => "1",
102  "TAY" => "1",
103  "TSX" => "1",
104  "TXA" => "1",
105  "TXS" => "1",
106  "TYA" => "1",
107  "A" => "2",
108  "X" => "2",
109  "Y" => "2",
110  "C" => "3",
111  "#" => "5",
112  "$" => "5",
113  "%" => "5",
114  "(" => "5",
115  ")" => "5",
116  "+" => "5",
117  "," => "5",
118  ";" => "5",
119  "ABSOLUTE" => "6",
120  "BYTE" => "6",
121  "DB" => "6",
122  "DRIVES" => "6",
123  "DS" => "6",
124  "DW" => "6",
125  "END" => "6",
126  "EQU" => "6",
127  "LIST" => "6",
128  "MOD32" => "6",
129  "OFF" => "6",
130  "ON" => "6",
131  "ORG" => "6",
132  "TITLE" => "6");
133 
134 // Special extensions
135 
136 // Each category can specify a PHP function that returns an altered
137 // version of the keyword.
138 
139 
140 
141 $this->linkscripts = array(
142  "1" => "donothing",
143  "2" => "donothing",
144  "3" => "donothing",
145  "5" => "donothing",
146  "6" => "donothing");
147 }
148 
149 
150 function donothing($keywordin)
151 {
152  return $keywordin;
153 }
154 
155 }?>