2007-03-26 16:18:08 +04:00
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
;; ;;
|
|
|
|
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
|
|
|
|
;; Distributed under terms of the GNU General Public License ;;
|
|
|
|
;; ;;
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
2007-07-27 17:52:03 +04:00
|
|
|
$Revision$
|
|
|
|
|
|
|
|
|
2005-10-06 21:56:22 +04:00
|
|
|
;
|
|
|
|
; Load of videomode driver in memory
|
2007-03-06 00:37:28 +03:00
|
|
|
;
|
2007-04-28 16:45:22 +04:00
|
|
|
; (driver is located at VMODE_BASE - 32kb) // if this area not occuped anything
|
2005-10-06 21:56:22 +04: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 16:45:22 +04:00
|
|
|
mov [VMODE_BASE],eax ;
|
|
|
|
mov [VMODE_BASE+0x100],byte 0xC3 ; Instruction RETN - driver loop
|
2007-06-15 02:23:47 +04:00
|
|
|
|
|
|
|
stdcall read_file, vmode, VMODE_BASE, 0, 0x8000 ;{SPraid.simba}
|
|
|
|
; mov esi, vmode
|
|
|
|
; xor ebx, ebx
|
|
|
|
; mov ecx, 0x8000 ; size of memory area for driver
|
|
|
|
; mov edx, VMODE_BASE ; Memory position of driver
|
|
|
|
; xor ebp, ebp
|
|
|
|
; call fs_RamdiskRead
|