Subversion Repositories Kolibri OS

Rev

Rev 750 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2. ;;                                                              ;;
  3. ;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
  4. ;; Distributed under terms of the GNU General Public License    ;;
  5. ;;                                                              ;;
  6. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  7.  
  8. $Revision: 750 $
  9.  
  10.  
  11. ;
  12. ; Load of videomode driver in memory
  13. ;
  14. ; (driver is located at VMODE_BASE  - 32kb) // if this area not occuped anything
  15. ;
  16. ; Author: Trans
  17. ; Date:  19.07.2003
  18. ;
  19. ; Include in MeOS kernel and compile with FASM
  20. ;
  21.  
  22.  
  23. ; LOAD VIDEOMODE DRIVER
  24.                                        ; If vmode.mdr file not found
  25.         or    eax,-1                   ; Driver ID = -1 (not present in system)
  26.         mov   [VMODE_BASE],eax   ;
  27.         mov   [VMODE_BASE+0x100],byte 0xC3     ; Instruction RETN - driver loop
  28.        
  29.         stdcall read_file, vmode, VMODE_BASE, 0, 0x8000                 ;{SPraid.simba}
  30. ;        mov     esi, vmode
  31. ;        xor     ebx, ebx
  32. ;        mov     ecx, 0x8000            ; size of memory area for driver
  33. ;        mov     edx, VMODE_BASE        ; Memory position of driver
  34. ;        xor     ebp, ebp
  35. ;        call    fs_RamdiskRead
  36.