-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added asmatmel to components. #2078
Conversation
Created a new language definition for Atmel assembler.
Added tests for asmatmel language. Renamed plural constants to constant.
Fixed failing tests and added some new conditions. Fixed missing A register in language definition.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cerkit Thank you for making this language definition!
I want to fully review your work but I can't find a spec or syntax reference to Atmel assembler. I found this one but it doesn't look like the language you describe. Unfortunately, the spec you linked didn't include enough of the language's syntax.
So could please supply some kind of introduction, syntax reference or tutorial to Atmel assembler? Some example project in Atmel asm would also be great for testing.
Reverted accidental dependency changes. Added operators and punctuation.
Changed spaces to tabs in tests to comply with project formatting requirements.
I am a web developer by trade (mostly a middle-tier C# developer), so I just started using assembler as a hobby at home in my spare time. I based my language definition on the asm6502 language and expanded the keywords to match what I found in the linked document. I honestly don't know the language at all and have only been doing simple examples from the docs. I've been using the web to find help with assembler, but I have yet to find a document for the language spec. I originally just created the issue for a new language definition, but after looking at how Prism works, I decided to try to solve my own problem and close the issue. |
Added additional operators.
The one you linked to is the correct language. The link that I supplied was the list of instructions for the Atmel AVR that I'm using. |
Cleaned up the operator list and added a new test for operators.
Ok, then I know which language it is. I'll re-review your PR soon. |
Added PA01-PZ31, PORTA-PORTZ as well as DDDA01-DDDZ31 support with tests.
Fixed an error where a single digit constant pin value was not being evaluated (ex: PD7). Added test condition.
Added example program to light up LEDs on an Arduino UNO.
Added DDA1-DDZ9 (single digit Data Direction).
Fixed a typo with the SBIW command.
JS File Size Changes (gzipped)A total of 2 files have changed, with a combined diff of +983 B (+39.4%).
|
Sorry for the long delay! I quickly rebased and updated the PR, so we can merge this! |
Thank you for contributing @cerkit! |
Created a new language definition for Atmel assembler.
Addresses #2077