|
|||||||||||
Technical Support Support Resources
Product Information |
A51: Defining New Instructions with MacrosInformation in this article applies to:
QUESTIONI am using the M8051TBO from Virtual IP Group. This CPU has an additional instruction, DEC DPTR. The opcode is 0A5h but the Keil assembler does not directly support it. Other IP cores like the Mentor M8051EW have additional instructions, too (Mentor uses opcode 0A5h for a MOVC @DPTR++,A instruction). How can I use such instructions in my assembler programs? ANSWERTo use chip-specific instructions, you may define a Macro that expands to the appropriate opcode. For example:
These macros may be used as if they were assembler instructions. For example:
MORE INFORMATION
SEE ALSOLast Reviewed: Thursday, February 25, 2021 | ||||||||||
|
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.