This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Assembly instructions to opcode conversion

Hello, I would like to know if there is any pattern that the compiler follows to write the correspoding opcode into the .hex file

I tried to figure out patterns, but there is always some other instruction countering it

Thanks in advance

Parents
  • Yes, I know the structure of the hex files, and I believe that there has to be a pattern, but looking at the opcodes table, the way the MOV instruction(mainly) looks rather unintuitive, since they aren't all grouped and sometimes it looks like they break their own criteria for the sub-groups where they are, I think I am starting to see some priorities though.

    The reason I want this is because I'm making a c program that receives an assembly source code file and creates a .hex, I didn't say it because it wasn't much related to programing microcontrolers

    Thanks for the reply!

Reply
  • Yes, I know the structure of the hex files, and I believe that there has to be a pattern, but looking at the opcodes table, the way the MOV instruction(mainly) looks rather unintuitive, since they aren't all grouped and sometimes it looks like they break their own criteria for the sub-groups where they are, I think I am starting to see some priorities though.

    The reason I want this is because I'm making a c program that receives an assembly source code file and creates a .hex, I didn't say it because it wasn't much related to programing microcontrolers

    Thanks for the reply!

Children