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