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_asmavr extends HFile{
00006 function HFile_asmavr(){
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", "gray", "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 "add" => "1",
00046 "adc" => "1",
00047 "adiw" => "1",
00048 "and" => "1",
00049 "andi" => "1",
00050 "cbr" => "1",
00051 "clr" => "1",
00052 "com" => "1",
00053 "cp" => "1",
00054 "cpc" => "1",
00055 "cpi" => "1",
00056 "dec" => "1",
00057 "eor" => "1",
00058 "fmul" => "1",
00059 "fmuls" => "1",
00060 "fmulsu" => "1",
00061 "inc" => "1",
00062 "mul" => "1",
00063 "muls" => "1",
00064 "mulsu" => "1",
00065 "neg" => "1",
00066 "or" => "1",
00067 "ori" => "1",
00068 "sub" => "1",
00069 "subi" => "1",
00070 "sbc" => "1",
00071 "sbci" => "1",
00072 "sbiw" => "1",
00073 "sbr" => "1",
00074 "ser" => "1",
00075 "tst" => "1",
00076 "brbs" => "2",
00077 "brbc" => "2",
00078 "breq" => "2",
00079 "brne" => "2",
00080 "brcs" => "2",
00081 "brcc" => "2",
00082 "brsh" => "2",
00083 "brlo" => "2",
00084 "brmi" => "2",
00085 "brpl" => "2",
00086 "brge" => "2",
00087 "brlt" => "2",
00088 "brhs" => "2",
00089 "brhc" => "2",
00090 "brts" => "2",
00091 "brtc" => "2",
00092 "brvs" => "2",
00093 "brvc" => "2",
00094 "brie" => "2",
00095 "brid" => "2",
00096 "call" => "2",
00097 "cpse" => "2",
00098 "eicall" => "2",
00099 "eijmp" => "2",
00100 "ijmp" => "2",
00101 "icall" => "2",
00102 "jmp" => "2",
00103 "rjmp" => "2",
00104 "rcall" => "2",
00105 "ret" => "2",
00106 "reti" => "2",
00107 "sbrc" => "2",
00108 "sbrs" => "2",
00109 "sbic" => "2",
00110 "sbis" => "2",
00111 "elpm" => "3",
00112 "espm" => "3",
00113 "in" => "3",
00114 "ldi" => "3",
00115 "lds" => "3",
00116 "ld" => "3",
00117 "ldd" => "3",
00118 "lpm" => "3",
00119 "mov" => "3",
00120 "movw" => "3",
00121 "out" => "3",
00122 "push" => "3",
00123 "pop" => "3",
00124 "st" => "3",
00125 "sts" => "3",
00126 "std" => "3",
00127 "spm" => "3",
00128 "x" => "3",
00129 "x+" => "3",
00130 "y" => "3",
00131 "y+" => "3",
00132 "y+q" => "3",
00133 "z" => "3",
00134 "z+" => "3",
00135 "z+q" => "3",
00136 "-x" => "3",
00137 "-y" => "3",
00138 "-z" => "3",
00139 "asr" => "4",
00140 "cbi" => "4",
00141 "clc" => "4",
00142 "cln" => "4",
00143 "clz" => "4",
00144 "cli" => "4",
00145 "cls" => "4",
00146 "clv" => "4",
00147 "clt" => "4",
00148 "clh" => "4",
00149 "lsl" => "4",
00150 "lsr" => "4",
00151 "nop" => "4",
00152 "ror" => "4",
00153 "rol" => "4",
00154 "sbi" => "4",
00155 "sec" => "4",
00156 "sen" => "4",
00157 "sez" => "4",
00158 "sei" => "4",
00159 "ses" => "4",
00160 "sev" => "4",
00161 "set" => "4",
00162 "seh" => "4",
00163 "swap" => "4",
00164 "sleep" => "4",
00165 "bst" => "4",
00166 "bld" => "4",
00167 "bset" => "4",
00168 "bclr" => "4",
00169 "wdr" => "4",
00170 ".org" => "5",
00171 ".equ" => "5",
00172 ".include" => "5",
00173 ".macro" => "5",
00174 ".endmacro" => "5",
00175 ".set" => "5",
00176 ".byte" => "5",
00177 ".cseg" => "5",
00178 ".db" => "5",
00179 ".def" => "5",
00180 ".device" => "5",
00181 ".dseg" => "5",
00182 ".dw" => "5",
00183 ".eseg" => "5",
00184 ".exit" => "5",
00185 ".list" => "5",
00186 ".nolist" => "5",
00187 ".listmac" => "5");
00188
00189
00190
00191
00192
00193
00194
00195
00196 $this->linkscripts = array(
00197 "1" => "donothing",
00198 "2" => "donothing",
00199 "3" => "donothing",
00200 "4" => "donothing",
00201 "5" => "donothing");
00202 }
00203
00204
00205 function donothing($keywordin)
00206 {
00207 return $keywordin;
00208 }
00209
00210 }?>