Does the compiler support MCS-51 interrupts?
Yes, indeed. Use the “interrupt” keyword in the function definition. Here’s the syntax: void interrupt(0x13) Isr(void){ . . . } The function must be of type void-void. The vector (interrupt address) must be specified after the “interrupt” keyword. Above function is for the external interrupt INT1# with vector 0x13. Search for the keyword “interrupt” (using Reads51 find-in-files feature) and look at other examples given in the .\work directory.