Subversion Repositories Kolibri OS

Rev

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

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