Subversion Repositories Kolibri OS

Rev

Rev 424 | Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

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