| CS306 | Processing Systems and Structures | J. W. Lockwood |
Compare each possible direction value
Eliminate conditional jumps by defining a table of movements indexed by the Direction. This method runs in constant O(1) time.
|
|
| Memory Address (hex) | Interrupt Function Pointer |
|---|---|
| 003FC | INT 255 |
| 4 * x | INT x |
| 00008 | INT 2 |
| 00004 | INT 1 |
| 00000 | INT 0 |
With software interrupts, we can also define a sub-function by placing a value in a register. For example, to execute of the many DOS functions, you can specify a sub-function by loading a value into AH just before calling INT 21
Video cards come with 80x86 commands burned in a ROM. Video BIOS is located at C0000-C7FFF and holds routines for handling basic functions. To execute a function in video BIOS ROM, call INT 10 with AX=sub-function. Video BIOS calls can also be used to place characters or pixels on the screen; but it MUCH SLOWER to use this method as compared to writing directly to video memory.
INT = 8 + IRQ
INT = 68h + IRQ
H(128.174.5.58) = 17
H(224.2.4.88) = 190
H(141.142.44.33) = 14