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_asmdsp56k extends HFile{
00006 function HFile_asmdsp56k(){
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 "abs" => "1",
00046 "adc" => "1",
00047 "add" => "1",
00048 "addl" => "1",
00049 "addr" => "1",
00050 "and" => "1",
00051 "andi" => "1",
00052 "asl" => "1",
00053 "asr" => "1",
00054 "bchg" => "1",
00055 "bclr" => "1",
00056 "bset" => "1",
00057 "btst" => "1",
00058 "clr" => "1",
00059 "cmp" => "1",
00060 "cmpm" => "1",
00061 "debug" => "1",
00062 "dec" => "1",
00063 "div" => "1",
00064 "do" => "1",
00065 "debugcc" => "1",
00066 "debughs" => "1",
00067 "debugcs" => "1",
00068 "debuglo" => "1",
00069 "debugec" => "1",
00070 "debugeq" => "1",
00071 "debuges" => "1",
00072 "debugge" => "1",
00073 "debuggt" => "1",
00074 "debuglc" => "1",
00075 "debugle" => "1",
00076 "debugls" => "1",
00077 "debuglt" => "1",
00078 "debugmi" => "1",
00079 "debugne" => "1",
00080 "debugnr" => "1",
00081 "debugpl" => "1",
00082 "debugnn" => "1",
00083 "enddo" => "1",
00084 "eor" => "1",
00085 "illegal" => "1",
00086 "inc" => "1",
00087 "jclr" => "1",
00088 "jmp" => "1",
00089 "jsclr" => "1",
00090 "jset" => "1",
00091 "jsr" => "1",
00092 "jsset" => "1",
00093 "jcc" => "1",
00094 "jhs" => "1",
00095 "jcs" => "1",
00096 "jlo" => "1",
00097 "jec" => "1",
00098 "jeq" => "1",
00099 "jes" => "1",
00100 "jge" => "1",
00101 "jgt" => "1",
00102 "jlc" => "1",
00103 "jle" => "1",
00104 "jls" => "1",
00105 "jlt" => "1",
00106 "jmi" => "1",
00107 "jne" => "1",
00108 "jnr" => "1",
00109 "jpl" => "1",
00110 "jnn" => "1",
00111 "jscc" => "1",
00112 "jshs" => "1",
00113 "jscs" => "1",
00114 "jslo" => "1",
00115 "jsec" => "1",
00116 "jseq" => "1",
00117 "jses" => "1",
00118 "jsge" => "1",
00119 "jsgt" => "1",
00120 "jslc" => "1",
00121 "jsle" => "1",
00122 "jsls" => "1",
00123 "jslt" => "1",
00124 "jsmi" => "1",
00125 "jsne" => "1",
00126 "jsnr" => "1",
00127 "jspl" => "1",
00128 "jsnn" => "1",
00129 "lsl" => "1",
00130 "lsr" => "1",
00131 "lua" => "1",
00132 "mac" => "1",
00133 "macr" => "1",
00134 "move" => "1",
00135 "movec" => "1",
00136 "movem" => "1",
00137 "movep" => "1",
00138 "mpy" => "1",
00139 "mpyr" => "1",
00140 "neg" => "1",
00141 "nop" => "1",
00142 "norm" => "1",
00143 "not" => "1",
00144 "or" => "1",
00145 "ori" => "1",
00146 "rep" => "1",
00147 "reset" => "1",
00148 "rnd" => "1",
00149 "rol" => "1",
00150 "ror" => "1",
00151 "rti" => "1",
00152 "rts" => "1",
00153 "sbc" => "1",
00154 "stop" => "1",
00155 "sub" => "1",
00156 "subl" => "1",
00157 "subr" => "1",
00158 "swi" => "1",
00159 "tfr" => "1",
00160 "tst" => "1",
00161 "tcc" => "1",
00162 "ths" => "1",
00163 "tcs" => "1",
00164 "tlo" => "1",
00165 "tec" => "1",
00166 "teq" => "1",
00167 "tes" => "1",
00168 "tge" => "1",
00169 "tgt" => "1",
00170 "tlc" => "1",
00171 "tle" => "1",
00172 "tls" => "1",
00173 "tlt" => "1",
00174 "tmi" => "1",
00175 "tne" => "1",
00176 "tnr" => "1",
00177 "tpl" => "1",
00178 "tnn" => "1",
00179 "wait" => "1",
00180 "by" => "2",
00181 "downto" => "2",
00182 "then" => "2",
00183 "to" => "2",
00184 ".break" => "2",
00185 ".continue" => "2",
00186 ".else" => "2",
00187 ".endf" => "2",
00188 ".endi" => "2",
00189 ".endl" => "2",
00190 ".endw" => "2",
00191 ".for" => "2",
00192 ".if" => "2",
00193 ".loop" => "2",
00194 ".repeat" => "2",
00195 ".until" => "2",
00196 ".while" => "2",
00197 "baddr" => "3",
00198 "bsb" => "3",
00199 "bsc" => "3",
00200 "buffer" => "3",
00201 "cobj" => "3",
00202 "comment" => "3",
00203 "dc" => "3",
00204 "dcb" => "3",
00205 "define" => "3",
00206 "ds" => "3",
00207 "dsm" => "3",
00208 "dsr" => "3",
00209 "dup" => "3",
00210 "dupa" => "3",
00211 "dupc" => "3",
00212 "dupf" => "3",
00213 "else" => "3",
00214 "end" => "3",
00215 "endbuf" => "3",
00216 "endif" => "3",
00217 "endm" => "3",
00218 "endsec" => "3",
00219 "equ" => "3",
00220 "exitm" => "3",
00221 "fail" => "3",
00222 "force" => "3",
00223 "global" => "3",
00224 "himem" => "3",
00225 "ident" => "3",
00226 "if" => "3",
00227 "include" => "3",
00228 "list" => "3",
00229 "local" => "3",
00230 "lomem" => "3",
00231 "lstcol" => "3",
00232 "maclib" => "3",
00233 "macro" => "3",
00234 "mode" => "3",
00235 "msg" => "3",
00236 "nolist" => "3",
00237 "opt" => "3",
00238 "org" => "3",
00239 "page" => "3",
00240 "pmacro" => "3",
00241 "prctl" => "3",
00242 "radix" => "3",
00243 "rdirect" => "3",
00244 "scsjmp" => "3",
00245 "scsreg" => "3",
00246 "section" => "3",
00247 "set" => "3",
00248 "stitle" => "3",
00249 "symobj" => "3",
00250 "tabs" => "3",
00251 "title" => "3",
00252 "undef" => "3",
00253 "warn" => "3",
00254 "xdef" => "3",
00255 "xref" => "3",
00256 "@abs" => "4",
00257 "@acs" => "4",
00258 "@asn" => "4",
00259 "@atn" => "4",
00260 "@arg" => "4",
00261 "@cel" => "4",
00262 "@coh" => "4",
00263 "@cos" => "4",
00264 "@cvf" => "4",
00265 "@cvi" => "4",
00266 "@cvs" => "4",
00267 "@cnt" => "4",
00268 "@ccc" => "4",
00269 "@chk" => "4",
00270 "@ctr" => "4",
00271 "@def" => "4",
00272 "@flr" => "4",
00273 "@fld" => "4",
00274 "@frc" => "4",
00275 "@exp" => "4",
00276 "@int" => "4",
00277 "@l10" => "4",
00278 "@log" => "4",
00279 "@lfr" => "4",
00280 "@lng" => "4",
00281 "@lun" => "4",
00282 "@len" => "4",
00283 "@lcv" => "4",
00284 "@lst" => "4",
00285 "@max" => "4",
00286 "@min" => "4",
00287 "@mac" => "4",
00288 "@mxp" => "4",
00289 "@msp" => "4",
00290 "@rel" => "4",
00291 "@pow" => "4",
00292 "@pos" => "4",
00293 "@rnd" => "4",
00294 "@sgn" => "4",
00295 "@sin" => "4",
00296 "@snh" => "4",
00297 "@sqt" => "4",
00298 "@scp" => "4",
00299 "@tan" => "4",
00300 "@tnh" => "4",
00301 "@unf" => "4",
00302 "@xph" => "4",
00303 "a" => "5",
00304 "a0" => "5",
00305 "a1" => "5",
00306 "a2" => "5",
00307 "b" => "5",
00308 "b0" => "5",
00309 "b1" => "5",
00310 "b2" => "5",
00311 "ccr" => "5",
00312 "lc" => "5",
00313 "la" => "5",
00314 "m0" => "5",
00315 "m1" => "5",
00316 "m2" => "5",
00317 "m3" => "5",
00318 "m4" => "5",
00319 "m5" => "5",
00320 "m6" => "5",
00321 "m7" => "5",
00322 "mr" => "5",
00323 "n0" => "5",
00324 "n1" => "5",
00325 "n2" => "5",
00326 "n3" => "5",
00327 "n4" => "5",
00328 "n5" => "5",
00329 "n6" => "5",
00330 "n7" => "5",
00331 "omr" => "5",
00332 "pc" => "5",
00333 "r0" => "5",
00334 "r1" => "5",
00335 "r2" => "5",
00336 "r3" => "5",
00337 "r4" => "5",
00338 "r5" => "5",
00339 "r6" => "5",
00340 "r7" => "5",
00341 "sr" => "5",
00342 "sp" => "5",
00343 "ssh" => "5",
00344 "ssl" => "5",
00345 "x" => "5",
00346 "x0" => "5",
00347 "x1" => "5",
00348 "y" => "5",
00349 "y0" => "5",
00350 "y1" => "5",
00351 "(r0)" => "5",
00352 "(r1)" => "5",
00353 "(r2)" => "5",
00354 "(r3)" => "5",
00355 "(r4)" => "5",
00356 "(r5)" => "5",
00357 "(r6)" => "5",
00358 "(r7)" => "5",
00359 "(r0)+" => "5",
00360 "(r1)+" => "5",
00361 "(r2)+" => "5",
00362 "(r3)+" => "5",
00363 "(r4)+" => "5",
00364 "(r5)+" => "5",
00365 "(r6)+" => "5",
00366 "(r7)+" => "5",
00367 "(r0)-" => "5",
00368 "(r1)-" => "5",
00369 "(r2)-" => "5",
00370 "(r3)-" => "5",
00371 "(r4)-" => "5",
00372 "(r5)-" => "5",
00373 "(r6)-" => "5",
00374 "(r7)-" => "5",
00375 "(r0)+n0" => "5",
00376 "(r1)+n1" => "5",
00377 "(r2)+n2" => "5",
00378 "(r3)+n3" => "5",
00379 "(r4)+n4" => "5",
00380 "(r5)+n5" => "5",
00381 "(r6)+n6" => "5",
00382 "(r7)+n7" => "5",
00383 "(r0)-n0" => "5",
00384 "(r1)-n1" => "5",
00385 "(r2)-n2" => "5",
00386 "(r3)-n3" => "5",
00387 "(r4)-n4" => "5",
00388 "(r5)-n5" => "5",
00389 "(r6)-n6" => "5",
00390 "(r7)-n7" => "5",
00391 "-x0" => "5",
00392 "-x1" => "5",
00393 "-y0" => "5",
00394 "-y1" => "5",
00395 "-(r0)" => "5",
00396 "-(r1)" => "5",
00397 "-(r2)" => "5",
00398 "-(r3)" => "5",
00399 "-(r4)" => "5",
00400 "-(r5)" => "5",
00401 "-(r6)" => "5",
00402 "-(r7)" => "5",
00403 "+x0" => "5",
00404 "+x1" => "5",
00405 "+y0" => "5",
00406 "+y1" => "5");
00407
00408
00409
00410
00411
00412
00413
00414
00415 $this->linkscripts = array(
00416 "1" => "donothing",
00417 "2" => "donothing",
00418 "3" => "donothing",
00419 "4" => "donothing",
00420 "5" => "donothing");
00421 }
00422
00423
00424 function donothing($keywordin)
00425 {
00426 return $keywordin;
00427 }
00428
00429 }?>