Keil Logo

INTR2 Assembler Directive

Abbreviation

I2

Arguments

None.

Default

The assembler assumes that interrupts push four bytes onto the stack (the 24-bit return address and PSW1).

µVision

Options — Target — 4-Byte Interrupt Frame Size.

Description

The INTR2 directive specifies that interrupts save only the lower 16 bits of the return address on the stack. The upper 8 bits and PSW1 are not saved.

Note

  • This directive does not change any assembler code or instruction encoding. It is used to notify the linker and debugger of the frame size for interrupt functions. The linker uses this information to check the consistency of interrupt frame sizes between program object modules. A linker warning is generated if interrupt frame sizes of program modules differ.
See Also

MODSRC

Example
A251 MYFILE.A51 INTR2

$I2
  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.