INT (x86 Instruction) - Real Mode

Real Mode

When generating a software interrupt, the processor calls one of the 256 functions pointed to by the interrupt address table, which is located in the first 1024 bytes of memory while in real mode (See Interrupt vector). It is therefore entirely possible to use a far-call instruction to start the interrupt-function manually after pushing the flag register.

One of the most useful DOS software interrupts was interrupt 0x21. By calling it with different parameters in the registers (mostly ah and al) you could access various IO operations, string output and more.

Most Unix systems and derivatives do not use software interrupts, with the exception of interrupt 0x80, used to make system calls. This is accomplished by entering a 32-bit value corresponding to a kernel function into the EAX register of the processor and then executing INT 0x80.

Read more about this topic:  INT (x86 Instruction)

Famous quotes containing the words real and/or mode:

    The real dividing line between early childhood and middle childhood is not between the fifth year and the sixth year—it is more nearly when children are about seven or eight, moving on toward nine. Building the barrier at six has no psychological basis. It has come about only from the historic-economic-political fact that the age of six is when we provide schools for all.
    James L. Hymes, Jr. (20th century)

    The body sins once, and has done with its sin, for action is a mode of purification. Nothing remains then but the recollection of a pleasure, or the luxury of a regret.
    Oscar Wilde (1854–1900)