|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!DOCTYPE language SYSTEM "language.dtd">
|
|
|
|
<language name="Asm6502" version="1.05" kateversion="2.5" section="Assembler" extensions="*.asm" mimetype="text/x-asm6502">
|
|
|
|
<highlighting>
|
|
|
|
|
|
|
|
<contexts>
|
|
|
|
<context name = "Base" attribute = "Normal Text" lineEndContext = "#stay">
|
|
|
|
|
|
|
|
|
|
|
|
<RegExpr String= "#define.*$" attribute = "Preprocessor" context="#stay"/>
|
|
|
|
<RegExpr String= "#include .*$" attribute = "Preprocessor" context="#stay"/>
|
|
|
|
<RegExpr String= ";.*$" attribute = "Comment" context="#stay"/>
|
|
|
|
<RegExpr String= "\.byte" attribute = "Data Type" context="#stay"/>
|
|
|
|
<RegExpr String= "\.byt" attribute = "Data Type" context="#stay"/>
|
|
|
|
<RegExpr String= "\.word" attribute = "Data Type" context="#stay"/>
|
|
|
|
<RegExpr String= "\.asc" attribute = "Data Type" context="#stay"/>
|
|
|
|
<RegExpr String= "\.dsb" attribute = "Data Type" context="#stay"/>
|
|
|
|
<RegExpr String= "\.fopt" attribute = "Data Type" context="#stay"/>
|
|
|
|
<RegExpr String= "\.text" attribute = "Data Type" context="#stay"/>
|
|
|
|
<RegExpr String= "\.data" attribute = "Data Type" context="#stay"/>
|
|
|
|
<RegExpr String= "\.bss" attribute = "Data Type" context="#stay"/>
|
|
|
|
<RegExpr String= "\.zero" attribute = "Data Type" context="#stay"/>
|
|
|
|
<RegExpr String= "\.align" attribute = "Data Type" context="#stay"/>
|
|
|
|
<RegExpr String= "\$[A-Za-z0-9]*" attribute = "Hex" context="#stay"/>
|
|
|
|
<RegExpr String= ",x$" attribute = "Keyword" context="#stay" insensitive="TRUE"/>
|
|
|
|
<RegExpr String= ",y$" attribute = "Keyword" context="#stay" insensitive="TRUE"/>
|
|
|
|
<RegExpr String= "#" attribute = "Keyword" context="#stay" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="TAX" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="ADC" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="AND" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="ASL" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="BCC" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="BCS" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="BEQ" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="BIT" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="BMI" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="BNE" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="BPL" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="BRK" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="BVC" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="BVS" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="CLC" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="CLD" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="CLI" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="CLV" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="CMP" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="CPX" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="CPY" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="DEC" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="DEX" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="DEY" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="EOR" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="INC" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="INX" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="INY" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="JMP" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="JSR" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="LDA" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="LDX" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="LDY" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="LSR" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="NOP" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="ORA" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="PHA" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="PHP" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="PLA" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="PLP" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="ROL" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="ROR" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="RTI" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="RTS" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="SBC" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="SEC" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="SED" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="SEI" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="STA" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="STX" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="STY" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="TAY" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="TSX" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="TXA" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="TXS" insensitive="TRUE"/>
|
|
|
|
<StringDetect attribute="Keyword" context="#stay" String="TYA" insensitive="TRUE"/>
|
|
|
|
|
|
|
|
<RegExpr String= "\*=" attribute = "Decimal" context="#stay"/>
|
|
|
|
<RangeDetect char = """ char1 = """ attribute = "String" context = "#stay"/>
|
|
|
|
<AnyChar String = "-+<>=;" attribute = "Operator" context = "#stay"/>
|
|
|
|
<Detect2Chars attribute="Comment" context="Commentar 2" char="/" char1="*" beginRegion="Comment"/>
|
|
|
|
|
|
|
|
|
|
|
|
</context>
|
|
|
|
<context attribute="Comment" lineEndContext="#stay" name="Commentar 2">
|
|
|
|
<Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="Comment"/>
|
|
|
|
</context>
|
|
|
|
</contexts>
|
|
|
|
|
|
|
|
<itemDatas>
|
|
|
|
<itemData name = "Normal Text" defStyleNum = "dsNormal"/>
|
|
|
|
<itemData name = "Keyword" defStyleNum = "dsKeyword"/>
|
|
|
|
<itemData name="Decimal" defStyleNum="dsDecVal"/>
|
|
|
|
<itemData name="Data Type" defStyleNum="dsDataType"/>
|
|
|
|
<itemData name="Hex" defStyleNum="dsBaseN"/>
|
|
|
|
<itemData name = "String" defStyleNum = "dsString"/>
|
|
|
|
<itemData name = "Comment" defStyleNum = "dsComment"/>
|
|
|
|
<itemData name = "Substitution" defStyleNum = "dsOthers"/>
|
|
|
|
<itemData name="Preprocessor" defStyleNum="dsOthers"/>
|
|
|
|
<itemData name = "Parameter" defStyleNum = "dsOthers"/>
|
|
|
|
<itemData name = "Operator" defStyleNum = "dsOthers"/>
|
|
|
|
<itemData name = "Command" defStyleNum = "dsNormal"/>
|
|
|
|
</itemDatas>
|
|
|
|
</highlighting>
|
|
|
|
<general>
|
|
|
|
<comments>
|
|
|
|
<comment name="singleLine" start=";"/>
|
|
|
|
<comment name="multiLine" start="/*" end="*/"/>
|
|
|
|
</comments>
|
|
|
|
<keywords casesensitive="1"/>
|
|
|
|
</general>
|
|
|
|
</language>
|
|
|
|
|