Subversion Repositories Kolibri OS

Rev

Rev 425 | Blame | Last modification | View Log | Download | RSS feed

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