mirror of
https://github.com/MatthewCallis/language-65asm.git
synced 2024-10-31 14:09:21 +00:00
99 lines
3.2 KiB
Plaintext
99 lines
3.2 KiB
Plaintext
'fileTypes': []
|
|
'name': 'WLA-DX'
|
|
'patterns': [
|
|
{
|
|
'include': '#M6502'
|
|
}
|
|
{
|
|
'include': '#M65C02'
|
|
}
|
|
{
|
|
'include': '#M65816'
|
|
}
|
|
{
|
|
'include': '#decimal_number'
|
|
}
|
|
{
|
|
'include': '#hex_number'
|
|
}
|
|
{
|
|
'include': '#hex_number_h'
|
|
}
|
|
{
|
|
'include': '#binary_number'
|
|
}
|
|
{
|
|
'match': '(\\.)?\\b(?i:24bit|accu|base|computesneschecksum|endemuvector|endnativevector|endsnes|fastrom|hirom|index|lorom|slowrom|smc|snesemuvector|snesheader|snesnativevector|16bit|8bit|asc|asciitable|asctable|asm|background|bank|block|br|breakpoint|byt|db|dbcos|dbm|dbrnd|dbsin|def|define|ds|dsb|dstruct|dsw|dw|dwcos|dwm|dwrnd|dwsin|else|emptyfill|endasm|endb|ende|endif|endm|endme|endr|endro|ends|endst|enum|equ|export|fail|fclose|fopen|fread|fsize|if|ifdef|ifdefm|ifeq|ifexists|ifgr|ifgreq|ifle|ifleeq|ifndef|ifndefm|ifneq|incbin|incdir|include|input|macro|memorymap|org|orga|outname|printt|printv|ramsection|redef|redefine|repeat|rept|rombankmap|rombanks|rombanksize|section|seed|shift|slot|struct|sym|symbol|unbackground|undef|undefine|word|cartridgetype|computegbchecksum|computegbcomplementcheck|licenseecodenew|licenseecodeold|ramsize|romdmg|romgbc|romsgb|name|computesmschecksum|sdsctag|smsta)\\b'
|
|
'name': 'keyword.directive'
|
|
}
|
|
{
|
|
'begin': '/\\*'
|
|
'beginCaptures':
|
|
'0':
|
|
'name': 'punctuation.definition.comment.begin'
|
|
'end': '\\*/'
|
|
'endCaptures':
|
|
'0':
|
|
'name': 'punctuation.definition.comment.end'
|
|
'name': 'comment.block'
|
|
}
|
|
{
|
|
'begin': '(;)'
|
|
'beginCaptures':
|
|
'1':
|
|
'name': 'punctuation.definition.comment'
|
|
'end': '\\n'
|
|
'name': 'comment.line.semicolon'
|
|
}
|
|
{
|
|
'begin': '(^\\*)'
|
|
'beginCaptures':
|
|
'1':
|
|
'name': 'punctuation.definition.comment'
|
|
'end': '\\n'
|
|
'name': 'comment.line.asterisk'
|
|
}
|
|
{
|
|
'match': '^[A-Za-z_][A-Za-z0-9_]*'
|
|
'name': 'variable.other.readwrite.assembly' # 'entity.name.label'
|
|
}
|
|
{
|
|
'match': '^\\_[A-Za-z_][A-Za-z0-9_]*'
|
|
'name': 'variable.other.readwrite.instance.assembly' # 'entity.name.label.local'
|
|
}
|
|
{
|
|
'begin': '"'
|
|
'beginCaptures':
|
|
'0':
|
|
'name': 'punctuation.definition.string.begin'
|
|
'end': '"'
|
|
'endCaptures':
|
|
'0':
|
|
'name': 'punctuation.definition.string.end'
|
|
'name': 'string.quoted.double.assembly'
|
|
}
|
|
]
|
|
'repository':
|
|
'M6502':
|
|
'match': '\\b(?i:ADC|AND|ASL|BCC|BCS|BEQ|BIT|BMI|BNE|BPL|BRK|BVC|BVS|CLC|CLD|CLI|CLV|CMP|CPX|CPY|DEC|DEX|DEY|EOR|INA|INC|INX|INY|JMP|JSR|LDA|LDX|LDY|LSR|NOP|ORA|PHA|PHP|PLA|PLP|ROL|ROR|RTI|RTS|SBC|SEC|SED|SEI|STA|STX|STY|TAX|TAY|TSX|TXA|TXS|TYA)\\b'
|
|
'name': 'keyword.mnemonic.6502'
|
|
'M65816':
|
|
'match': '\\b(?i:BRL|COP|JML|JSL|MVN|MVP|PEA|PEI|PER|PHB|PHD|PHK|PLB|PLD|REP|RTL|SEP|TCD|TCS|TDC|TSC|TXY|TYX|WDM|XBA|XCE)\\b'
|
|
'name': 'keyword.mnemonic.65816'
|
|
'M65C02':
|
|
'match': '\\b(?i:BRA|PHX|PHY|PLX|PLY|STP|STZ|TRB|TSB|WAI)\\b'
|
|
'name': 'keyword.mnemonic.65c02'
|
|
'decimal_number':
|
|
'match': '\\b([0-9]+)\\b'
|
|
'name': 'constant.numeric.decimal'
|
|
'hex_number':
|
|
'match': '\\$[A-Fa-f0-9]+'
|
|
'name': 'constant.numeric.hex'
|
|
'hex_number_h':
|
|
'match': '\\b([0-9]+)h\\b'
|
|
'name': 'constant.numeric.hex'
|
|
'binary_number':
|
|
'match': '%[01]+'
|
|
'name': 'constant.numeric.binary'
|
|
'scopeName': 'source.assembly.65816.wla-dx'
|