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
OK - so you are writing an assembler?
What part of the MOV instruction do you find strange? http://www.keil.com/support/man/docs/is51/is51_mov.htm
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!
OK - so you are writing an assembler? I just saw someone claiming advantages of his wheel because t was bot perfectly round
Ah, but it can be quite educational to write some own tools. And the 8051 is good for that, since it has a quite easy architecture.