mirror of
https://github.com/MatthewCallis/language-65asm.git
synced 2025-07-05 05:24:00 +00:00
Compare commits
9 Commits
Author | SHA1 | Date | |
---|---|---|---|
191902076a | |||
c1b48c5732 | |||
0a367c9924 | |||
5ad9fa0be5 | |||
f56e593d02 | |||
2578cfb4e3 | |||
dafc148662 | |||
1cbcd550e1 | |||
032e7d76d7 |
20
CHANGELOG.md
Normal file
20
CHANGELOG.md
Normal file
@ -0,0 +1,20 @@
|
||||
# v10.0.0
|
||||
|
||||
* Add support for asm6 assembler
|
||||
|
||||
# v9.0.0
|
||||
|
||||
Added https://github.com/georgjz as a collaborator 🎉
|
||||
|
||||
* Updated ACME Grammar (https://github.com/MatthewCallis/language-65asm/pull/11)
|
||||
* Fix DASM & Merlin, add ASAR, improve CC65 (https://github.com/MatthewCallis/language-65asm/pull/10):
|
||||
* Added a new grammar to support [Asar Assembler](https://github.com/RPGHacker/asar)
|
||||
* Added SPC700 and SuperFX opcodes (extracted from the SNES cc65 grammar)
|
||||
* DASM and Merlin should work now
|
||||
* cc65
|
||||
* Added some missing commands and constants
|
||||
* Changed some scopes to improve readability
|
||||
* Added a new grammar for the linker config files ld65 uses
|
||||
* Updated the link in README.md
|
||||
* Fixed hex numbers with a trailing h
|
||||
* Add missing commands to WDC tools
|
@ -4,6 +4,7 @@ Adds syntax highlighting to 65816/65C816/65802/6502/65C02 files in Atom, with ex
|
||||
|
||||
- [ACME Crossassembler](https://sourceforge.net/projects/acme-crossass/)
|
||||
- [Asar SNES Assembler](https://github.com/RPGHacker/asar)
|
||||
- [ASM6f](https://github.com/freem/asm6f) (support for NES emulator Mesen)
|
||||
- [cc65 (SNES Syntax: 65816, SPC700, SuperFX)](https://github.com/cc65/cc65)
|
||||
- [DASM](http://dasm-dillon.sourceforge.net/) (6502)
|
||||
- [EDASM](https://archive.org/details/EDASM-ProDOS_Assembler_Tools_Manual)
|
||||
|
106
grammars/asm6.cson
Normal file
106
grammars/asm6.cson
Normal file
@ -0,0 +1,106 @@
|
||||
# Syntax Highlighting for the asm6 assembler
|
||||
|
||||
scopeName: 'source.asm6'
|
||||
name: 'ASM6f (6502)' # Name shown in Atom Editor grammar selection
|
||||
# File extensions associated with this grammar
|
||||
fileTypes: [
|
||||
's'
|
||||
'asm'
|
||||
]
|
||||
patterns: [
|
||||
{ include: 'source.65c02-opcodes' } # extend with 6502X opcodes
|
||||
{ include: 'source.6502x-opcodes' } # extend with 6502X opcodes
|
||||
{ include: '#comments' } # comments
|
||||
{ include: '#symbols' } # symbols, constants, numbers
|
||||
{ include: '#directives' } # cc65 assembler directives
|
||||
]
|
||||
|
||||
# Repository starts here ------------------------------------------------------
|
||||
repository:
|
||||
|
||||
# comments
|
||||
comments:
|
||||
patterns: [
|
||||
# semicolon comments
|
||||
{
|
||||
match: ';.*$'
|
||||
name: 'comment.line.semicolon.cc65-directives'
|
||||
}
|
||||
]
|
||||
|
||||
# symbols
|
||||
symbols:
|
||||
patterns: [
|
||||
# strings
|
||||
{
|
||||
begin: '[\"\']'
|
||||
beginCaptures:
|
||||
0:
|
||||
name: 'punctuation.definition.string.begin.cc65-directives'
|
||||
end: '[\"\']'
|
||||
endCaptures:
|
||||
0:
|
||||
name: 'punctuation.definition.string.end.cc65-directives'
|
||||
name: 'string.quoted.double.cc65-directives'
|
||||
}
|
||||
# absolut addressing/numbers
|
||||
{
|
||||
match: '\\#(\'.\'|[^\\s\']+)'
|
||||
name: 'constant.numeric.hex.cc65-directives'
|
||||
}
|
||||
# hex, prefixed with dollar sign($)
|
||||
{
|
||||
match: '-?\\$\\b[a-fA-F0-9]+\\b'
|
||||
name: 'constant.numeric.hex.cc65-directives'
|
||||
}
|
||||
# hex, suffixed with h(h)
|
||||
{
|
||||
match: '-?\\b([a-fA-F0-9]+)h\\b'
|
||||
name: 'constant.numeric.hex.cc65-directives'
|
||||
}
|
||||
# binary prefixed with %
|
||||
{
|
||||
match: '%[01]+'
|
||||
name: 'constant.numeric.binary.cc65-directives'
|
||||
}
|
||||
# binary suffixed with b
|
||||
{
|
||||
match: '[01]+[bB]'
|
||||
name: 'constant.numeric.binary.cc65-directives'
|
||||
}
|
||||
# decimal
|
||||
{
|
||||
match: '\\b([0-9]+)\\b'
|
||||
name: 'constant.numeric.decimal.cc65-directives'
|
||||
}
|
||||
]
|
||||
|
||||
# assembler directives
|
||||
directives:
|
||||
patterns: [
|
||||
# ca65 pseudo variables
|
||||
{
|
||||
match: '(\\.)?\\b(?i:equ|include|incsrc|(inc)?bin|db|dw|byte|word|dcb|dcw|(dc\\.b)|(dc\\.w)|ignorenl|endinl|unstable|hunstable|inesprog|ineschr|inesmap|inesmir|nes2chrram|nes2prgram|nes2usb|nes2tv|nes2vs|nes2bram|nes2chrbram)\\b'
|
||||
name: 'support.function.pseudo.cc65-directives'
|
||||
}
|
||||
# ca65 pseudo functions
|
||||
{
|
||||
match: '(\\.)?\\b(?i:dl|dh|hex|(ds\\.?b)|(ds\\.?w)|pad|org|align|fillvalue|base|if|elseif|else|endif|ifdef|ifndef|macro|endm|rept|endr|enum|ende|error)\\b'
|
||||
name: 'support.function.pseudo.cc65-directives'
|
||||
}
|
||||
# address sizes, macpack packages
|
||||
# {
|
||||
# match: '\\b(?i:direct|zeropage|zp|absolute|abs|near|far|long|dword|atari|cbm|cpu|generic|longbranch)\\b'
|
||||
# name: 'constant.language.cc65-directives'
|
||||
# }
|
||||
# Operators
|
||||
{
|
||||
match: '!|&|&&|\\^|\\*|\\/|\\-|\\+|~|=|<=|>=|<<|>>|<>|<|>|\\||\\|\\|\\%'
|
||||
name: 'keyword.operator.cc65-directives'
|
||||
}
|
||||
# Operators II/undocumented opcodes
|
||||
{
|
||||
match: '(\\.)\\b(?i:slo|rla|sre|rra|sax|lax|dcp|isc|anc|alr|arr|axs|las|ahx|shy|shx|tas|xaa)\\b'
|
||||
name: 'keyword.operator.cc65-directives'
|
||||
}
|
||||
]
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "language-65asm",
|
||||
"version": "9.0.0",
|
||||
"version": "10.0.0",
|
||||
"description": "Adds syntax highlighting to 65816/65C816/65802/6502/65C02 files in Atom, with extra support for various compilers.",
|
||||
"repository": "git@github.com:MatthewCallis/language-65asm.git",
|
||||
"license": "MIT",
|
||||
|
Reference in New Issue
Block a user