Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
431 | serge | 1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
2 | ;; ;; |
||
3 | ;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;; |
||
4 | ;; Distributed under terms of the GNU General Public License ;; |
||
5 | ;; ;; |
||
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
||
7 | |||
593 | mikedld | 8 | $Revision: 750 $ |
9 | |||
10 | |||
1 | ha | 11 | ; |
12 | ; Load of videomode driver in memory |
||
389 | serge | 13 | ; |
472 | serge | 14 | ; (driver is located at VMODE_BASE - 32kb) // if this area not occuped anything |
1 | ha | 15 | ; |
16 | ; Author: Trans |
||
17 | ; Date: 19.07.2003 |
||
18 | ; |
||
19 | ; Include in MeOS kernel and compile with FASM |
||
20 | ; |
||
21 | |||
22 | |||
23 | ; LOAD VIDEOMODE DRIVER |
||
24 | ; If vmode.mdr file not found |
||
25 | or eax,-1 ; Driver ID = -1 (not present in system) |
||
472 | serge | 26 | mov [VMODE_BASE],eax ; |
27 | mov [VMODE_BASE+0x100],byte 0xC3 ; Instruction RETN - driver loop |
||
544 | spraid | 28 | |
29 | stdcall read_file, vmode, VMODE_BASE, 0, 0x8000 ;{SPraid.simba} |
||
30 | ; mov esi, vmode |
||
31 | ; xor ebx, ebx |
||
32 | ; mov ecx, 0x8000 ; size of memory area for driver |
||
33 | ; mov edx, VMODE_BASE ; Memory position of driver |
||
34 | ; xor ebp, ebp |
||
35 | ; call fs_RamdiskRead |