Subversion Repositories Kolibri OS

Rev

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

Rev 5790 Rev 7121
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: 5790 $
14
$Revision: 7121 $
15
 
15
 
16
 
16
 
Line 494... Line 494...
494
cfgmanager:
494
cfgmanager:
495
; settings:
495
; settings:
496
; a) preboot_graph = graphical mode
496
; a) preboot_graph = graphical mode
497
;    preboot_gprobe = probe this mode?
497
;    preboot_gprobe = probe this mode?
498
; b) preboot_biosdisk  = use BIOS disks through V86 emulation? // (earlier was: preboot_dma  = use DMA access?)
498
; b) preboot_biosdisk  = use BIOS disks through V86 emulation? // (earlier was: preboot_dma  = use DMA access?)
499
; c) preboot_debug = duplicates kernel debug output to the screen // (earlier was: preboot_vrrm = use VRR?)
499
; c) preboot_debug = duplicates kernel debug output to the screen
500
;    // VRR is an obsolete functionality, used only with CRT monitors: increase display frequency by reducing screen resolution
-
 
501
; d) preboot_launcher = start the first app (right now it's LAUNCHER) after kernel is loaded?
500
; d) preboot_launcher = start the first app (right now it's LAUNCHER) after kernel is loaded?
502
; e) preboot_device = from where to boot?
501
; e) preboot_device = from where to boot?
Line 503... Line 502...
503
 
502
 
504
; determine default settings
503
; determine default settings
Line 533... Line 532...
533
; following 4 lines set variables to 1 if its current value is 0
532
; following 4 lines set variables to 1 if its current value is 0
534
        cmp     byte [di+preboot_dma-preboot_device], 1
533
        cmp     byte [di+preboot_dma-preboot_device], 1
535
        adc     byte [di+preboot_dma-preboot_device], 0
534
        adc     byte [di+preboot_dma-preboot_device], 0
536
        cmp     byte [di+preboot_launcher-preboot_device], 1        ; Start LAUNCHER by default
535
        cmp     byte [di+preboot_launcher-preboot_device], 1        ; Start LAUNCHER by default
537
        adc     byte [di+preboot_launcher-preboot_device], 0
536
        adc     byte [di+preboot_launcher-preboot_device], 0
538
;        cmp     byte [di+preboot_biosdisk-preboot_device], 1
-
 
539
;        adc     byte [di+preboot_biosdisk-preboot_device], 0
-
 
540
;; default value for VRR is OFF
-
 
541
;        cmp     byte [di+preboot_vrrm-preboot_device], 0
-
 
542
;        jnz    @f
-
 
543
;        mov    byte [di+preboot_vrrm-preboot_device], 2
-
 
544
;@@:
-
 
545
; notify user
-
 
546
        _setcursor 5,2
537
        _setcursor 5,2
Line 547... Line 538...
547
 
538
 
548
        mov     si, linef
539
        mov     si, linef
549
        call    printplain
540
        call    printplain
Line 567... Line 558...
567
        call    draw_current_vmode
558
        call    draw_current_vmode
Line 568... Line 559...
568
 
559
 
569
        mov     si, usebd_msg
560
        mov     si, usebd_msg
570
        cmp     [preboot_biosdisk], 1
561
        cmp     [preboot_biosdisk], 1
571
        call    .say_on_off
-
 
572
;        mov     si, vrrm_msg
-
 
573
;        cmp     [preboot_vrrm], 1
-
 
574
;        call    .say_on_off
562
        call    .say_on_off
575
        mov     si, debug_mode_msg
563
        mov     si, debug_mode_msg
576
        cmp     [preboot_debug], 1
564
        cmp     [preboot_debug], 1
577
        call    .say_on_off
565
        call    .say_on_off
578
        mov     si, launcher_msg
566
        mov     si, launcher_msg
Line 665... Line 653...
665
        jz      .change_a
653
        jz      .change_a
666
        cmp     al, 'q'         ; Trick to make 'A' key on azerty keyboard work
654
        cmp     al, 'q'         ; Trick to make 'A' key on azerty keyboard work
667
        je      .change_a
655
        je      .change_a
668
        cmp     al, 'b'         ; use BIOS disks? // (selecting YES will make BIOS disks visible as /bd)
656
        cmp     al, 'b'         ; use BIOS disks? // (selecting YES will make BIOS disks visible as /bd)
669
        jz      .change_b
657
        jz      .change_b
670
        cmp     al, 'c'         ; load kernel in debug mode?  // (earlier was: use VRR?)
658
        cmp     al, 'c'         ; load kernel in debug mode?
671
        jz      .change_c
659
        jz      .change_c
672
        cmp     al, 'd'         ; start launcher after kernel is loaded?
660
        cmp     al, 'd'         ; start launcher after kernel is loaded?
673
        jz      .change_d
661
        jz      .change_d
674
        cmp     al, 'e'         ; select boot origin
662
        cmp     al, 'e'         ; select boot origin
675
        jnz     .show_remarks
663
        jnz     .show_remarks
Line 787... Line 775...
787
;        call    getkey
775
;        call    getkey
788
;        mov     [preboot_dma], al
776
;        mov     [preboot_dma], al
789
        _ask_question ask_bd,'12',preboot_biosdisk              ; range accepted for answer: 1-2
777
        _ask_question ask_bd,'12',preboot_biosdisk              ; range accepted for answer: 1-2
790
        _setcursor 11,0
778
        _setcursor 11,0
791
        jmp     .d
779
        jmp     .d
792
;.change_c:                     ; //  VRR is an obsolete functionality, used only with CRT monitors
-
 
793
;        _setcursor 16,0
-
 
794
;        mov     si, vrrmprint
-
 
795
;        call    print
-
 
796
;        mov     bx, '12'       ; range accepted for answer: 1-2
-
 
797
;        call    getkey
-
 
798
;        mov     [preboot_vrrm], al
-
 
799
;        _setcursor 12,0
-
 
800
;        jmp     .d
-
 
801
.change_c:                      ; c) preboot_debug = duplicates kernel debug output to the screen
780
.change_c:                      ; c) preboot_debug = duplicates kernel debug output to the screen
802
        _ask_question ask_debug,'12',preboot_debug              ; range accepted for answer: 1-2
781
        _ask_question ask_debug,'12',preboot_debug              ; range accepted for answer: 1-2
803
        _setcursor 12,0
782
        _setcursor 12,0
804
        jmp     .d
783
        jmp     .d
805
.change_d:                      ; d) preboot_launcher = start the first app (right now it's LAUNCHER) after kernel is loaded?
784
.change_d:                      ; d) preboot_launcher = start the first app (right now it's LAUNCHER) after kernel is loaded?
Line 973... Line 952...
973
; DMA ACCESS TO HD
952
; DMA ACCESS TO HD
Line 974... Line 953...
974
 
953
 
975
        mov     al, [preboot_dma]
954
        mov     al, [preboot_dma]
Line 976... Line -...
976
        mov     [es:BOOT_DMA], al
-
 
977
 
-
 
978
;; VRR_M USE
-
 
979
;
-
 
980
;        mov     al,[preboot_vrrm]
-
 
981
;        mov     [es:BOOT_VRR], al              ;// 0x9030
955
        mov     [es:BOOT_DMA], al
982
 
956
 
983
; Set kernel DEBUG mode - if nonzero, duplicates debug output to the screen.
957
; Set kernel DEBUG mode - if nonzero, duplicates debug output to the screen.
Line 984... Line 958...
984
        mov     al, [preboot_debug]
958
        mov     al, [preboot_debug]