mirror of
https://github.com/ksherlock/65816.tmbundle.git
synced 2024-11-25 16:31:41 +00:00
generic 65816 mnemonics.
This commit is contained in:
parent
e29f3b30fd
commit
ccdfa3c16e
38
Syntaxes/65816.sublime-syntax
Normal file
38
Syntaxes/65816.sublime-syntax
Normal file
@ -0,0 +1,38 @@
|
||||
%YAML 1.2
|
||||
---
|
||||
name: 65816
|
||||
scope: source.asm.65816
|
||||
|
||||
contexts:
|
||||
main:
|
||||
- include: mnemonics-6502
|
||||
- include: mnemonics-65c02
|
||||
- include: mnemonics-65816
|
||||
|
||||
mnemonics-6502:
|
||||
- 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
|
||||
scope: keyword.mnemonic.6502
|
||||
|
||||
mnemonics-65c02:
|
||||
- match: \b(?i:BRA|PHX|PHY|PLX|PLY|STP|STZ|TRB|TSB|WAI)\b
|
||||
scope: keyword.mnemonic.65c02
|
||||
|
||||
mnemonics-65c02s:
|
||||
- match: \b(?i:BBR|BBS|RMB|SMB)[0-7]\b
|
||||
scope: keyword.mnemonic.65c02s
|
||||
|
||||
mnemonics-65816:
|
||||
- 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
|
||||
scope: keyword.mnemonic.65816
|
||||
|
||||
mnemonics-65816-long:
|
||||
- match: \b(?i:ADCL|ANDL|CMPL|EORL|LDAL|ORAL|SBCL|STAL)\b
|
||||
scope: keyword.mnemonic.65816.long
|
||||
|
||||
mnemonics-65816-alt:
|
||||
- match: \b(?i:BLT|BGE|CPA|DEA|INA|SWA|TAS|TSA)\b
|
||||
scope: keyword.mnemonic.65816.alt
|
||||
|
||||
mnemonics-65c02-m740:
|
||||
- match: \b(?i:CLT|COM|LDM|RRF|SET|TST)\b
|
||||
scope: keyword.mnemonic.m740
|
Loading…
Reference in New Issue
Block a user