Subversion Repositories Kolibri OS

Rev

Rev 388 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 388 Rev 444
-
 
1
$Revision: 431 $
-
 
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
;
9
;
2
; Load of videomode driver in memory
10
; Load of videomode driver in memory
3
;
11
;
4
; (driver is located at 0x760000-0x768000  - 32kb) // if this area not occuped anything
12
; (driver is located at 0x760000-0x768000  - 32kb) // if this area not occuped anything
5
;
13
;
6
; Author: Trans
14
; Author: Trans
7
; Date:  19.07.2003
15
; Date:  19.07.2003
8
;
16
;
9
; Include in MeOS kernel and compile with FASM
17
; Include in MeOS kernel and compile with FASM
10
;
18
;
11
 
19
 
12
 
20
 
13
; LOAD VIDEOMODE DRIVER
21
; LOAD VIDEOMODE DRIVER
14
                                       ; If vmode.mdr file not found
22
                                       ; If vmode.mdr file not found
15
        or    eax,-1                   ; Driver ID = -1 (not present in system)
23
        or    eax,-1                   ; Driver ID = -1 (not present in system)
16
        mov   [OS_BASE+0x760000],eax   ;
24
        mov   [OS_BASE+0x760000],eax   ;
17
        mov   [OS_BASE+0x760100],byte 0xC3     ; Instruction RETN - driver loop
25
        mov   [OS_BASE+0x760100],byte 0xC3     ; Instruction RETN - driver loop
18
 
26
 
19
        mov     esi, vmode
27
        mov     esi, vmode
20
        xor     ebx, ebx
28
        xor     ebx, ebx
21
        mov     ecx, 0x8000            ; size of memory area for driver
29
        mov     ecx, 0x8000            ; size of memory area for driver
22
        mov     edx, OS_BASE+0x760000  ; Memory position of driver
30
        mov     edx, OS_BASE+0x760000  ; Memory position of driver
23
        call    fs_RamdiskRead
31
        call    fs_RamdiskRead