◄Summary► ◄Details► ◄Example► ◄Back► Arguments interrupt_number Integer expression representing an interrupt number in the range $0..$FF (decimal 0..255) register_values Record variable of type Registers Description The Intr procedure initiates a specified software interrupt and loads the registers with specified values. The interrupt_number argument specifies the software interrupt to be executed. Consult a DOS technical reference for information about interrupt numbers. The register_values argument passes and returns the values of hardware registers in a record of type Registers, defined in the Dos unit. Intr loads the values passed by register_values into the machine registers and generates the interrupt. It then runs the software interrupt handler associated with interrupt_number. After the interrupt handler ends, Intr copies the final register values into register_values. Intr cannot be used with interrupt handlers that return values in SP or SS on exit. The MsDos procedure operates in the same way as a call to Intr with an interrupt number $21.