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_asm8051 extends HFile{
00006 function HFile_asm8051(){
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");
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 "ASEG" => "1",
00046 "BSEG" => "1",
00047 "COMMON" => "1",
00048 "CSEG" => "1",
00049 "DB" => "1",
00050 "DBIT" => "1",
00051 "DS" => "1",
00052 "DSEG" => "1",
00053 "DW" => "1",
00054 "END" => "1",
00055 "ENDIF" => "1",
00056 "ENDMOD" => "1",
00057 "ELSE" => "1",
00058 "EQU" => "1",
00059 "EXTERN" => "1",
00060 "EXTRN" => "1",
00061 "HIGH" => "1",
00062 "ISEG" => "1",
00063 "LOW" => "1",
00064 "LSTPAG" => "1",
00065 "MODULE" => "1",
00066 "NAME" => "1",
00067 "ORG" => "1",
00068 "PAGE" => "1",
00069 "PAGSIZ" => "1",
00070 "PUBLIC" => "1",
00071 "RSEG" => "1",
00072 "SEGMENT" => "1",
00073 "SET" => "1",
00074 "TITEL" => "1",
00075 "TITL" => "1",
00076 "USING" => "1",
00077 "XSEG" => "1",
00078 "ACALL" => "2",
00079 "ADD" => "2",
00080 "ADDC" => "2",
00081 "AJMP" => "2",
00082 "ANL" => "2",
00083 "CALL" => "2",
00084 "CJNE" => "2",
00085 "CLR" => "2",
00086 "CPL" => "2",
00087 "DA" => "2",
00088 "DEC" => "2",
00089 "DIV" => "2",
00090 "DJNZ" => "2",
00091 "INC" => "2",
00092 "JB" => "2",
00093 "JBC" => "2",
00094 "JC" => "2",
00095 "JMP" => "2",
00096 "JNC" => "2",
00097 "JNB" => "2",
00098 "JNZ" => "2",
00099 "JZ" => "2",
00100 "LCALL" => "2",
00101 "LJMP" => "2",
00102 "MOV" => "2",
00103 "MOVC" => "2",
00104 "MOVX" => "2",
00105 "MUL" => "2",
00106 "NOP" => "2",
00107 "ORL" => "2",
00108 "POP" => "2",
00109 "PUSH" => "2",
00110 "RET" => "2",
00111 "RETI" => "2",
00112 "RL" => "2",
00113 "RLC" => "2",
00114 "RR" => "2",
00115 "RRC" => "2",
00116 "SETB" => "2",
00117 "SJMP" => "2",
00118 "SUBB" => "2",
00119 "SWAP" => "2",
00120 "XCH" => "2",
00121 "XRL" => "2",
00122 "A" => "3",
00123 "AB" => "3",
00124 "ACC" => "3",
00125 "B" => "3",
00126 "C" => "3",
00127 "DPH" => "3",
00128 "DPL" => "3",
00129 "DPTR" => "3",
00130 "R0" => "3",
00131 "R1" => "3",
00132 "R2" => "3",
00133 "R3" => "3",
00134 "R4" => "3",
00135 "R5" => "3",
00136 "R6" => "3",
00137 "R7" => "3",
00138 "SP" => "3",
00139 "PSW" => "3",
00140 "+" => "4",
00141 "-" => "4",
00142 "=" => "4",
00143 "@" => "4",
00144 "#" => "4",
00145 "$" => "4",
00146 "[" => "4",
00147 "]" => "4");
00148
00149
00150
00151
00152
00153
00154
00155
00156 $this->linkscripts = array(
00157 "1" => "donothing",
00158 "2" => "donothing",
00159 "3" => "donothing",
00160 "4" => "donothing");
00161 }
00162
00163
00164 function donothing($keywordin)
00165 {
00166 return $keywordin;
00167 }
00168
00169 }?>