Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1 | ha | 1 | ; |
2 | ; Load of videomode driver in memory |
||
3 | ; |
||
4 | ; (driver is located at 0x760000-0x768000 - 32kb) // if this area not occuped anything |
||
5 | ; |
||
6 | ; Author: Trans |
||
7 | ; Date: 19.07.2003 |
||
8 | ; |
||
9 | ; Include in MeOS kernel and compile with FASM |
||
10 | ; |
||
11 | |||
12 | |||
13 | ;vmode db 'VMODE MDR' ; MDR - Menuet Driver |
||
14 | ; must be located after fonts filenames in kernel.asm |
||
15 | |||
16 | ; LOAD VIDEOMODE DRIVER |
||
17 | ; If vmode.mdr file not found |
||
18 | or eax,-1 ; Driver ID = -1 (not present in system) |
||
19 | mov [0x760000],eax ; |
||
20 | mov [0x760100],byte 0xC3 ; Instruction RETN - driver loop |
||
21 | |||
22 | mov eax,vmode ; File name of driver |
||
23 | mov esi,12 |
||
24 | mov ebx,0 |
||
25 | mov ecx,26000 |
||
26 | mov edx,0x760000 ; Memory position of driver |
||
27 | call fileread |