Subversion Repositories Kolibri OS

Rev

Rev 8089 | Rev 9942 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8089 Rev 8091
Line 9... Line 9...
9
;;  KolibriOS 16-bit loader,                                    ;;
9
;;  KolibriOS 16-bit loader,                                    ;;
10
;;                        based on bootcode for MenuetOS        ;;
10
;;                        based on bootcode for MenuetOS        ;;
11
;;                                                              ;;
11
;;                                                              ;;
12
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
12
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 13... Line 13...
13
 
13
 
Line 14... Line 14...
14
$Revision: 8089 $
14
$Revision: 8091 $
15
 
15
 
16
 
16
 
Line 665... Line 665...
665
        jz      .change_d
665
        jz      .change_d
666
        cmp     al, 'e'         ; select boot origin
666
        cmp     al, 'e'         ; select boot origin
667
        jnz     .show_remarks
667
        jnz     .show_remarks
668
; e) preboot_device = from where to boot?
668
; e) preboot_device = from where to boot?
669
if defined extended_primary_loader
669
if defined extended_primary_loader
670
        _ask_question bdev,'12',preboot_device              ; range accepted for answer: 1-2
670
        _ask_question bdev,'13',preboot_device  ; range accepted for answer: 1-3
671
else
671
else
672
        _ask_question bdev,'14',preboot_device              ; range accepted for answer: 1-4
672
        _ask_question bdev,'14',preboot_device              ; range accepted for answer: 1-4
673
end if
673
end if
674
        _setcursor 14,0
674
        _setcursor 14,0
Line 968... Line 968...
968
        mov     [es:BOOT_LO.launcher_start], al    ;// 0x901D        
968
        mov     [es:BOOT_LO.launcher_start], al    ;// 0x901D        
Line 969... Line 969...
969
 
969
 
Line 970... Line 970...
970
; BOOT DEVICE
970
; BOOT DEVICE
-
 
971
 
-
 
972
        mov     al, [preboot_device]
971
 
973
if defined extended_primary_loader
-
 
974
        cmp     al, RD_LOAD_FROM_MEMORY
-
 
975
        jnz     @f
-
 
976
        mov     al, RD_LOAD_FROM_NONE
972
        mov     al, [preboot_device]
977
@@:
Line -... Line 978...
-
 
978
end if
-
 
979
        mov     [es:BOOT_LO.rd_load_from], al
-
 
980
 
-
 
981
; /sys path
-
 
982
        mov     eax, dword[preboot_syspath+0]
-
 
983
        mov     dword[es:BOOT_LO.syspath+0], eax
-
 
984
        mov     eax, dword[preboot_syspath+4]
-
 
985
        mov     dword[es:BOOT_LO.syspath+4], eax
-
 
986
        mov     eax, dword[preboot_syspath+8]
-
 
987
        mov     dword[es:BOOT_LO.syspath+8], eax
-
 
988
        mov     eax, dword[preboot_syspath+12]
973
        dec     al
989
        mov     dword[es:BOOT_LO.syspath+12], eax
974
        mov     [es:BOOT_LO.rd_load_from], al
990
 
Line 975... Line 991...
975
 
991