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_6502 extends HFile{
00006 function HFile_6502(){
00007 $this->HFile();
00008
00009
00010
00011
00012
00013
00014 $this->nocase = "0";
00015 $this->notrim = "1";
00016 $this->perl = "0";
00017
00018
00019
00020 $this->colours = array("blue", "brown", "purple");
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 "and" => "1",
00047 "asl" => "1",
00048 "bcc" => "1",
00049 "bcs" => "1",
00050 "beq" => "1",
00051 "bit" => "1",
00052 "bmi" => "1",
00053 "bne" => "1",
00054 "bpl" => "1",
00055 "brk" => "1",
00056 "bvc" => "1",
00057 "bvs" => "1",
00058 "clc" => "1",
00059 "cld" => "1",
00060 "cli" => "1",
00061 "clv" => "1",
00062 "cmp" => "1",
00063 "cpx" => "1",
00064 "cpy" => "1",
00065 "dec" => "1",
00066 "dex" => "1",
00067 "dey" => "1",
00068 "eor" => "1",
00069 "inc" => "1",
00070 "inx" => "1",
00071 "iny" => "1",
00072 "jmp" => "1",
00073 "jsr" => "1",
00074 "lda" => "1",
00075 "ldx" => "1",
00076 "ldy" => "1",
00077 "lsr" => "1",
00078 "nop" => "1",
00079 "ora" => "1",
00080 "pha" => "1",
00081 "php" => "1",
00082 "pla" => "1",
00083 "plp" => "1",
00084 "rol" => "1",
00085 "ror" => "1",
00086 "rti" => "1",
00087 "rts" => "1",
00088 "sbc" => "1",
00089 "sec" => "1",
00090 "sed" => "1",
00091 "sei" => "1",
00092 "sta" => "1",
00093 "stx" => "1",
00094 "sty" => "1",
00095 "tax" => "1",
00096 "tay" => "1",
00097 "tsx" => "1",
00098 "txa" => "1",
00099 "txs" => "1",
00100 "tya" => "1",
00101 ".byte" => "2",
00102 ".text" => "2",
00103 ".word" => "2",
00104 ".asc" => "2",
00105 ".scrl" => "2",
00106 ".scru" => "2",
00107 ".include" => "2",
00108 ".incbin" => "2",
00109 ".label" => "2",
00110 ".goto" => "2",
00111 ".if" => "2",
00112 ".end" => "2",
00113 ".enrty" => "2",
00114 ".opt" => "2",
00115 "*=" => "2");
00116
00117
00118
00119
00120
00121
00122
00123
00124 $this->linkscripts = array(
00125 "1" => "donothing",
00126 "2" => "donothing");
00127 }
00128
00129
00130 function donothing($keywordin)
00131 {
00132 return $keywordin;
00133 }
00134
00135 }?>