mirror of
https://github.com/MatthewCallis/language-65asm.git
synced 2024-11-25 23:49:19 +00:00
29 lines
633 B
Plaintext
29 lines
633 B
Plaintext
# Extends the basic 6502 instruction set with the 65c02 op codes
|
|
# NOTE: rmb, bbr, smb, bbs not supported yet
|
|
|
|
scopeName: 'source.65c02-opcodes'
|
|
|
|
patterns: [
|
|
# The basic 6502 instruction set
|
|
{
|
|
include: 'source.6502-opcodes'
|
|
}
|
|
# The added 65c02 op codes
|
|
{
|
|
include: '#mnemonics-65c02'
|
|
}
|
|
]
|
|
|
|
# Respository starts here -----------------------------------------------------
|
|
repository:
|
|
|
|
# basic 6502 instruction set
|
|
'mnemonics-65c02':
|
|
patterns: [
|
|
# mnemonics
|
|
{
|
|
match: '\\b(?i:BRA|PHX|PHY|PLX|PLY|STP|STZ|TRB|TSB|WAI)\\b'
|
|
name: 'keyword.mnemonic.65c02.65c02-opcodes'
|
|
}
|
|
]
|