mirror of
https://github.com/MatthewCallis/language-65asm.git
synced 2024-11-22 04:33:45 +00:00
43 lines
1.3 KiB
Plaintext
43 lines
1.3 KiB
Plaintext
'fileTypes': []
|
|
'name': '65816 Assembly'
|
|
'patterns': [
|
|
{
|
|
'include': '#M6502'
|
|
}
|
|
{
|
|
'include': '#M65C02'
|
|
}
|
|
{
|
|
'include': '#M65816L'
|
|
}
|
|
{
|
|
'include': '#M65816'
|
|
}
|
|
]
|
|
'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|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'
|
|
'M65816L':
|
|
'match': '\\b(?i:ADCL|ANDL|CMPL|EORL|LDAL|ORAL|SBCL|STAL)\\b'
|
|
'name': 'keyword.mnemonic.65816.long'
|
|
'M65C02':
|
|
'match': '\\b(?i:BRA|PHX|PHY|PLX|PLY|STP|STZ|TRB|TSB|WAI)\\b'
|
|
'name': 'keyword.mnemonic.65c02'
|
|
'binary_number':
|
|
'match': '%[01]+'
|
|
'name': 'constant.numeric.binary'
|
|
'decimal_number':
|
|
'match': '\\b([0-9]+)\\b'
|
|
'name': 'constant.numeric.decimal'
|
|
'hex_number':
|
|
'match': '\\$[A-Fa-f0-9]+'
|
|
'name': 'constant.numeric.hex'
|
|
'octal_number':
|
|
'match': '@([0-7]+)\\b'
|
|
'name': 'constant.numeric.octal'
|
|
'scopeName': 'source.assembly.65816'
|