- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 21
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
[question]: what is the correct way to add other architectures? #74
Comments
Hi! Unfortunately the project doesn't support ARM instructions yet. The instructions it is recognizing (e.g.
Finding a reliable way to pull down, generate xml files for, and parse the most recent version of the specification is definitely something we'd like to do, but just haven't had time to really dig into yet. Adding AVR would follow the same process anbd would also be a great addition to the project. Any relevant docs/information you have for this would be greatly appreciated :) |
Thanks for the info, i'll do that when i catch enough free time to actually implement that, didn't know updating the Instruction struct was also needed 😅 |
Sounds good! I'm hoping to take another look at it as well after school wraps up, but we'll see.
I'm not entirely sure if that's the case, just haven't given it a close enough look yet. To be more specific, I was looking at the pub struct InstructionForm {
pub gas_name: Option<String>,
pub go_name: Option<String>,
pub mmx_mode: Option<MMXMode>,
pub xmm_mode: Option<XMMMode>,
pub cancelling_inputs: Option<bool>,
pub nacl_version: Option<u8>,
pub nacl_zero_extends_outputs: Option<bool>,
pub isa: Option<ISA>,
pub operands: Vec<Operand>,
} Depending on what kind of information would be helpful for ARM instructions specifically, it may make sense to add or modify some of these fields. For an example, I made some modifications to the |
Just commenting to say I would love AVR support added as well if it wouldn't be too hard :) |
I'm planning on adding AVR (and Power ISA) after we get through the config overhaul. Thanks for commenting, it's helpful to know what people would find useful :) |
Just a quick update here. As mentioned in #170, @Svarshick is working on some python code to parse the AVR opcodes documentation into an xml format that the server can then process. I'm very excited for this to land once his end is ready (no rush though!), thanks so much for your patience everyone. 🙂 |
Hi, i need to work with a good chunk of AVR, ARM and other embedded style assembly, what would be the correct way for me to the opcodes and registers for em?
Should i just add em as new xml files in
opcodes/
andregisters/
' or is there another way to do it?Example of the assembly im talking about
I tried just using the default configuration, but it couldn't resolve almost any of the opcodes or registers :/
It only recognized a few like
nop
,movw
andret
, but none of the other opcodes, not evenadd
:/The text was updated successfully, but these errors were encountered: