Last updated on 3-June-2003

EGA.DRV
=======

The EGA display driver.
It contains 38 (0x26) publically accessible functions, and possibly a few
private functions.
The functions all end with a far return, so the jumps must be called far.
File format:

offset      length      purpose
0           0x72        38 jumps to public functions; each jump is 3 bytes
                        long
0x72        0x190       word table; table[i] = i*0x28 = offset of line i,
                        bitplane 0 in EGA memory; table is created by
                        function #1 when it is called for the first time
0x202       2           segment address of ?
0x204       2           word variable, purpose unknown
0x206       2           segment address of ?
0x208       0x10C       ?
0x314       0x100       byte table, purpose unknown
0x414       0x44C       ?
0x860       2           function 3,6,7,0xB,0xF,0x13,0x18,0x1E
0x862       4           function 0
0x866       2           word-sized flag, can be 0 or 1
0x868       0x251E      function 1 + other stuff


function#   offset      purpose
0           0x862       return screen height in ax (200 lines)
1           0x868       set video mode (0xD = 320x200, 16 colors)
                        and some other stuff
2           0x8E4       ?
3           0x860       empty function (retf)
4           0x920       ?
5           0x93C       ?
6           0x860       empty function (retf)
7           0x860       empty function (retf)
8           0x958       ?
9           0x98A       ?
0xA         0x9AE       ?
0xB         0x860       empty function (retf)
0xC         0xA78       ?
0xD         0xAEA       ?
0xE         0x860       empty function (retf)
0xF         0xE66       ?
0x10        0xE6C       ?
0x11        0xF8E       ?

Detailed function descriptions
------------------------------
