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, that was the term I was looking for.

    I pretty much realized that I need to treat MOV as a specific case, since the difference is that it can be grouped by the 1st or 2nd argument which makes it so there are conflicts

    i.e. all the "MOV A,..." instructions are in the E5-EF group, except the "MOV A,#immed" which is grouped with all the instructions like "MOV ...,#immed"(which are at the 74-7F group)

    I think I can go from this point, thanks for showing me the page!

Reply
  • Yes, that was the term I was looking for.

    I pretty much realized that I need to treat MOV as a specific case, since the difference is that it can be grouped by the 1st or 2nd argument which makes it so there are conflicts

    i.e. all the "MOV A,..." instructions are in the E5-EF group, except the "MOV A,#immed" which is grouped with all the instructions like "MOV ...,#immed"(which are at the 74-7F group)

    I think I can go from this point, thanks for showing me the page!

Children