وو

وحید آنلاین . آرشیو وبلاگ وحیدمی دات آی آر . شرکت بیان. vahidmy.blog.ir

وو

وحید آنلاین . آرشیو وبلاگ وحیدمی دات آی آر . شرکت بیان. vahidmy.blog.ir

INT

INT

Usage:  INT     num                                  Modifies flags: TF IF

Initiates a software interrupt by pushing the flags, clearing the Trap and Interrupt Flags, pushing CS followed by IP and loading CS:IP with the value found in the interrupt vector table.  Execution then begins at the location addressed by the new CS:IP

Software Interrupt


INT imm8                        ; CD ib                [8086]


INT causes a software interrupt through a specified vector number from 0 to 255.


Each interrupt vector number provides an index to a gate descriptor in the IDT. The first 32 interrupt vector numbers are reserved by Intel for system use. Some of these interrupts are used for internally generated exceptions.


The code generated by the INT instruction is always two bytes long: although there are short forms for some INT instructions, ROSASM does not generate them when it sees the INT mnemonic. In order to generate single-byte breakpoint instructions, use the INT3 or INT1 instructions (see  INT1) instead.


Example:

int 128


INT