mirror of
https://github.com/ksherlock/65816.tmbundle.git
synced 2024-12-22 10:30:19 +00:00
43 lines
1.4 KiB
YAML
43 lines
1.4 KiB
YAML
%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|MUL|DIV|CLB|SEB|BBC|BBS)\b
|
|
scope: keyword.mnemonic.m740
|
|
|
|
mnemonics-sweet16:
|
|
- match: \b(?i:RTN|SET|LD|LDD|ST|STD|POP|POPD|STP|ADD|SUB|CPR|INR|DCR|BR|BNC|BC|BP|BM|BZ|BNZ|BM1|BNM1|BK|RS|BS)\b
|
|
scope: keyword.mnemonic.sweet16
|