Skip to content
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

add avr opcodes #216

Merged
merged 1 commit into from
Jan 13, 2025
Merged

add avr opcodes #216

merged 1 commit into from
Jan 13, 2025

Conversation

Svarshick
Copy link
Contributor

  • XML file has similar form to the x80 opcodes file with the following difference:
  • Versions sections for different versions. If version has differences with other versions, it is named as . Other versions pointed as .
  • Each InstructionForm section has "summary" instead of global summary for Instruction.
  • SREG - status registers section.
  • Encoding is split into nibbles due to the official doc format. There could be 32 and 16 bit commands.
  • Clocks has problem with format because each section contains clocks of all versions. It should be discussed.

@WillLillis
Copy link
Collaborator

Thanks so much for taking the time to work on this! At a quick glance, everything in the xml file looks great! I should be able to work on the rust side this coming week to get these changes integrated soon.

Could you also include the code you wrote to generate the xml file in this PR? It could live in docs_store/opcodes/avr_xml_gen/.

@Svarshick
Copy link
Contributor Author

Svarshick commented Jan 12, 2025 via email

@Svarshick
Copy link
Contributor Author

Svarshick commented Jan 12, 2025 via email

@WillLillis
Copy link
Collaborator

For some reason my messages were blocked... I am glad to contribute. I feel like a part of something greater. For better readability I will restructure the file organisation of the project, add comments and split some logic into separate blocks. I have pinned the current state of the code, so you can check it if you need.

That sounds good to me. Where can I check out the project as it currently stands?

However, would it be better to commit more readable code?

To an extent, but for something like this that's only going to run a few times, don't worry about it too much.

I can work on it this week, then commit it afterward There are also AVR-Instructions pdf file

That works for me. And yeah, including the PDF file along with the code would be great!

I saw that you have X. Would It be comfortable for you to communicate here?

Yeah X works for me. I'm also available on Discord (.lillis) and Matrix (@lillis:matrix.org).

@WillLillis
Copy link
Collaborator

Everything looks good to me here, really looking forward to adding the generating code to the repo as well! :)

@WillLillis WillLillis merged commit b74fc0f into bergercookie:master Jan 13, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants