00001 <?php
00002 $BEAUT_PATH = realpath(".")."/syntax_highlight/php";
00003 if (!isset ($BEAUT_PATH)) return;
00004 require_once("$BEAUT_PATH/Beautifier/HFile.php");
00005 class HFile_asmz80 extends HFile{
00006 function HFile_asmz80(){
00007 $this->HFile();
00008
00009
00010
00011
00012
00013
00014 $this->nocase = "1";
00015 $this->notrim = "0";
00016 $this->perl = "0";
00017
00018
00019
00020 $this->colours = array("blue", "purple", "brown", "blue");
00021 $this->quotecolour = "blue";
00022 $this->blockcommentcolour = "green";
00023 $this->linecommentcolour = "green";
00024
00025
00026
00027 $this->indent = array();
00028 $this->unindent = array();
00029
00030
00031
00032 $this->stringchars = array("\"", "'");
00033 $this->delimiters = array("~", "#", "!", "$", "@", "%", "^", "&", "*", "(", ")", "-", "+", "=", "|", "\\", "/", "{", "}", "[", "]", ":", ";", "\"", "'", "<", ">", " ", ",", " ", ".", "?");
00034 $this->escchar = "";
00035
00036
00037
00038 $this->linecommenton = array(";");
00039 $this->blockcommenton = array("");
00040 $this->blockcommentoff = array("");
00041
00042
00043
00044 $this->keywords = array(
00045 "adc" => "1",
00046 "add" => "1",
00047 "and" => "1",
00048 "bit" => "1",
00049 "call" => "1",
00050 "ccf" => "1",
00051 "cp" => "1",
00052 "cpd" => "1",
00053 "cpdr" => "1",
00054 "cpi" => "1",
00055 "cpir" => "1",
00056 "cpl" => "1",
00057 "daa" => "1",
00058 "dec" => "1",
00059 "di" => "1",
00060 "djnz" => "1",
00061 "ei" => "1",
00062 "ex" => "1",
00063 "exx" => "1",
00064 "halt" => "1",
00065 "im" => "1",
00066 "in" => "1",
00067 "inc" => "1",
00068 "ind" => "1",
00069 "indr" => "1",
00070 "ini" => "1",
00071 "inir" => "1",
00072 "jp" => "1",
00073 "jr" => "1",
00074 "ld" => "1",
00075 "ldd" => "1",
00076 "lddr" => "1",
00077 "ldi" => "1",
00078 "ldir" => "1",
00079 "neg" => "1",
00080 "nop" => "1",
00081 "or" => "1",
00082 "otdr" => "1",
00083 "otir" => "1",
00084 "out" => "1",
00085 "outd" => "1",
00086 "outi" => "1",
00087 "pop" => "1",
00088 "push" => "1",
00089 "res" => "1",
00090 "ret" => "1",
00091 "reti" => "1",
00092 "retn" => "1",
00093 "rl" => "1",
00094 "rla" => "1",
00095 "rlc" => "1",
00096 "rlca" => "1",
00097 "rld" => "1",
00098 "rr" => "1",
00099 "rra" => "1",
00100 "rrc" => "1",
00101 "rrca" => "1",
00102 "rrd" => "1",
00103 "rst" => "1",
00104 "sbc" => "1",
00105 "scf" => "1",
00106 "set" => "1",
00107 "sla" => "1",
00108 "sll" => "1",
00109 "sra" => "1",
00110 "srl" => "1",
00111 "sub" => "1",
00112 "xor" => "1",
00113 "binary" => "2",
00114 "defb" => "2",
00115 "defc" => "2",
00116 "defgroup" => "2",
00117 "define" => "2",
00118 "defl" => "2",
00119 "defm" => "2",
00120 "defs" => "2",
00121 "defvars" => "2",
00122 "defw" => "2",
00123 "else" => "2",
00124 "endif" => "2",
00125 "if" => "2",
00126 "include" => "2",
00127 "lib" => "2",
00128 "lstoff" => "2",
00129 "lston" => "2",
00130 "module" => "2",
00131 "org" => "2",
00132 "xdef" => "2",
00133 "xlib" => "2",
00134 "xref" => "2",
00135 "$" => "4",
00136 "." => "4",
00137 "+" => "4",
00138 "-" => "4",
00139 "=" => "4",
00140 "//" => "4",
00141 "/" => "4",
00142 "%" => "4",
00143 "&" => "4",
00144 ">" => "4",
00145 "<" => "4",
00146 "^" => "4",
00147 "!" => "4",
00148 "|" => "4",
00149 "A" => "5",
00150 "AF" => "5",
00151 "AF\'" => "5",
00152 "B" => "5",
00153 "BC" => "5",
00154 "C" => "5",
00155 "D" => "5",
00156 "DE" => "5",
00157 "E" => "5",
00158 "F" => "5",
00159 "H" => "5",
00160 "HL" => "5",
00161 "IX" => "5",
00162 "IY" => "5",
00163 "IXL" => "5",
00164 "IXH" => "5",
00165 "IYL" => "5",
00166 "IYH" => "5",
00167 "L" => "5",
00168 "M" => "5",
00169 "NZ" => "5",
00170 "NC" => "5",
00171 "P" => "5",
00172 "PE" => "5",
00173 "PO" => "5",
00174 "Z" => "5");
00175
00176
00177
00178
00179
00180
00181
00182
00183 $this->linkscripts = array(
00184 "1" => "donothing",
00185 "2" => "donothing",
00186 "4" => "donothing",
00187 "5" => "donothing");
00188 }
00189
00190
00191 function donothing($keywordin)
00192 {
00193 return $keywordin;
00194 }
00195
00196 }?>