2007-03-21 23:58:33 +01:00
|
|
|
$Revision$
|
2007-03-26 14:18:08 +02:00
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
;; ;;
|
|
|
|
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
|
|
|
|
;; Distributed under terms of the GNU General Public License ;;
|
|
|
|
;; ;;
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
2005-10-06 19:56:22 +02:00
|
|
|
;
|
|
|
|
; Load of videomode driver in memory
|
2007-03-05 22:37:28 +01:00
|
|
|
;
|
2007-04-28 14:45:22 +02:00
|
|
|
; (driver is located at VMODE_BASE - 32kb) // if this area not occuped anything
|
2005-10-06 19:56:22 +02:00
|
|
|
;
|
|
|
|
; Author: Trans
|
|
|
|
; Date: 19.07.2003
|
|
|
|
;
|
|
|
|
; Include in MeOS kernel and compile with FASM
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
|
|
; LOAD VIDEOMODE DRIVER
|
|
|
|
; If vmode.mdr file not found
|
|
|
|
or eax,-1 ; Driver ID = -1 (not present in system)
|
2007-04-28 14:45:22 +02:00
|
|
|
mov [VMODE_BASE],eax ;
|
|
|
|
mov [VMODE_BASE+0x100],byte 0xC3 ; Instruction RETN - driver loop
|
2005-10-06 19:56:22 +02:00
|
|
|
|
2007-04-18 08:37:14 +02:00
|
|
|
mov esi, vmode
|
|
|
|
xor ebx, ebx
|
|
|
|
mov ecx, 0x8000 ; size of memory area for driver
|
2007-04-28 14:45:22 +02:00
|
|
|
mov edx, VMODE_BASE ; Memory position of driver
|
2007-05-24 13:27:05 +02:00
|
|
|
xor ebp, ebp
|
2007-04-18 08:37:14 +02:00
|
|
|
call fs_RamdiskRead
|