Keil Logo

ECRM Assembler Directive

Abbreviation

None.

Arguments

None.

Default

Generic CALL instructions are not expanded to ECALL instructions.

µVision

Options — AX51 — Misc Controls.

Description

The ECRM directive signals the AX51 Macro Assembler that the NXP 80C51MX device is operating in Extended Call Return Mode (ECRM). In this mode ACALL, LCALL, and ECALL push 3-bytes return address to stack. Therefore the generic CALL mnemonic can be expanded to an ECALL instructions since RET can return to any function call.

Note

  • This directive is available in the AX51 Assembler only.
See Also

MOD_MX51

Example
AX51 MYFILE.A51 MOD_MX51 ECRM

$MX ECRM
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

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.