Subversion Repositories Kolibri OS

Rev

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

Rev 2261 Rev 2288
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: 2261 $
14
$Revision: 2288 $
15
 
15
 
16
 
16
 
Line 710... Line 710...
710
        cmp     si,modes_table
710
        cmp     si, modes_table
711
        jbe     .loops
711
        jbe     .loops
712
        sub     word [cursor_pos],size_of_step
712
        sub     word [cursor_pos], size_of_step
713
        jmp     .loops
713
        jmp     .loops
Line -... Line 714...
-
 
714
 
714
 
715
.down:
715
.down:  cmp     ah,0x50;x,0x50E0               ; down
716
        cmp     ah, 0x50;x,0x50E0               ; down
716
        jne     .pgup
717
        jne     .pgup
717
        cmp     word[es:si+10],-1
718
        cmp     word[es:si+10], -1
718
        je      .loops        
719
        je      .loops
719
        add     word [cursor_pos],size_of_step
720
        add     word [cursor_pos], size_of_step
Line -... Line 721...
-
 
721
        jmp     .loops
720
        jmp     .loops
722
 
721
 
723
.pgup:
722
.pgup:  cmp     ah,0x49                 ; page up
724
        cmp     ah, 0x49                ; page up
723
        jne     .pgdn
725
        jne     .pgdn
724
        sub     si, size_of_step*long_v_table
726
        sub     si, size_of_step*long_v_table
725
        cmp     si, modes_table
727
        cmp     si, modes_table
Line 734... Line 736...
734
        mov     si, modes_table
736
        mov     si, modes_table
735
@@:
737
@@:
736
        mov     word [home_cursor], si
738
        mov     word [home_cursor], si
737
        jmp     .loops
739
        jmp     .loops
Line -... Line 740...
-
 
740
 
738
 
741
.pgdn:
739
.pgdn:  cmp     ah,0x51                 ; page down
742
        cmp     ah, 0x51                ; page down
740
        jne     .enter
743
        jne     .enter
741
        mov     ax, [end_cursor]
744
        mov     ax, [end_cursor]
742
        add     si, size_of_step*long_v_table
745
        add     si, size_of_step*long_v_table
743
        cmp     si, ax
746
        cmp     si, ax
Line 754... Line 757...
754
        mov     si, ax
757
        mov     si, ax
755
@@:
758
@@:
756
        mov     word [home_cursor], si
759
        mov     word [home_cursor], si
757
        jmp     .loops
760
        jmp     .loops
Line -... Line 761...
-
 
761
 
758
 
762
.enter:
759
.enter: cmp     al,0x0D;x,0x1C0D               ; enter
763
        cmp     al, 0x0D;x,0x1C0D               ; enter
760
        jne     .loops
764
        jne     .loops
761
        push    word [cursor_pos]
765
        push    word [cursor_pos]
762
        pop     bp
766
        pop     bp
763
        push    word [es:bp]
767
        push    word [es:bp]
Line 799... Line 803...
799
        call    print
803
        call    print
800
        mov     si, on_msg
804
        mov     si, on_msg
801
        popf
805
        popf
802
        jz      @f
806
        jz      @f
803
        mov     si, off_msg
807
        mov     si, off_msg
-
 
808
@@:
804
@@:     jmp     printplain
809
        jmp     printplain
805
; novesa and vervesa strings are not used at the moment of executing this code
810
; novesa and vervesa strings are not used at the moment of executing this code
806
virtual at novesa
811
virtual at novesa
807
.oldtimer dd ?
812
.oldtimer dd ?
808
.starttime dd ?
813
.starttime dd ?
809
if ~ defined extended_primary_loader
814
if ~ defined extended_primary_loader
Line 848... Line 853...
848
        jae     @f
853
        jae     @f
849
        cmp     al, 1
854
        cmp     al, 1
850
        mov     cl, 'ã'
855
        mov     cl, 'ã'
851
        jz      @f
856
        jz      @f
852
        mov     cl, 'ë'
857
        mov     cl, 'ë'
-
 
858
@@:
853
@@:     mov     [time_str+9], cl
859
        mov     [time_str+9], cl
854
else if lang eq et
860
else if lang eq et
855
        cmp     al, 1
861
        cmp     al, 1
856
        ja      @f
862
        ja      @f
857
        mov     [time_str+9], ' '
863
        mov     [time_str+9], ' '
858
        mov     [time_str+10],' '
864
        mov     [time_str+10], ' '
Line 861... Line 867...
861
; wait 5/4/3/2 seconds, 1 second
867
; wait 5/4/3/2 seconds, 1 second
862
        cmp     al, 1
868
        cmp     al, 1
863
        mov     cl, 's'
869
        mov     cl, 's'
864
        ja      @f
870
        ja      @f
865
        mov     cl, ' '
871
        mov     cl, ' '
-
 
872
@@:
866
@@:     mov     [time_str+9], cl
873
        mov     [time_str+9], cl
867
end if
874
end if
868
        add     al, '0'
875
        add     al, '0'
869
        mov     [time_str+1], al
876
        mov     [time_str+1], al
870
        mov     si, time_msg
877
        mov     si, time_msg
871
        _setcursor 7,0
878
        _setcursor 7,0