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

Not use a specified intruction

Hi all.
I'm using a modified 8051 cpu, and it don't have some instructions (in this case MUL). In Keil IDE, when I do some like: foo = bar << 1;
Compiler translate as: MUL AB
And it produce a reset of the software.
My question is very simple: how I do to indicate the compiler that not to use that instruction?
Thanks.

Parents
  • The full 8051 (complete with peripherials) was implemented with a minimum of transistors. It hurts to hear about a 8051 that doesn't even have a full core. I leave it to someone else to figure out if there even is support for that.

    Does the C51 compatibility list contain any other 8051 chip with MUL removed? If not, then there would be zero reason for Keil to include such a setting in their compiler. And if that's the case, then you would either have to settle for assembler programming, or download and modify SDCC or some other compiler that is available complete with source code.

Reply
  • The full 8051 (complete with peripherials) was implemented with a minimum of transistors. It hurts to hear about a 8051 that doesn't even have a full core. I leave it to someone else to figure out if there even is support for that.

    Does the C51 compatibility list contain any other 8051 chip with MUL removed? If not, then there would be zero reason for Keil to include such a setting in their compiler. And if that's the case, then you would either have to settle for assembler programming, or download and modify SDCC or some other compiler that is available complete with source code.

Children
No data