Subversion Repositories Kolibri OS

Rev

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

Rev 76 Rev 82
Line 147... Line 147...
147
    loop    @b
147
    loop    @b
148
    ret
148
    ret
Line 149... Line 149...
149
 
149
 
150
; 16-bit data
150
; 16-bit data
-
 
151
; videomodes table
151
; videomodes table
152
		org $+0x10000
152
gr_table:
153
gr_table:
153
    dw      0x112+0100000000000000b ,  640 ,  480        ; 1
154
    dw      0x112+0100000000000000b ,  640 ,  480        ; 1
154
    dw      0x115+0100000000000000b ,  800 ,  600        ; 2
155
    dw      0x115+0100000000000000b ,  800 ,  600        ; 2
155
    dw      0x118+0100000000000000b , 1024 ,  768        ; 3
156
    dw      0x118+0100000000000000b , 1024 ,  768        ; 3
Line 171... Line 172...
171
 
172
 
172
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
173
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
173
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
174
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
174
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
175
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
-
 
176
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
Line 175... Line 177...
175
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
177
        	org $-0x10000
176
 
178
 
177
;=========================================================================
179
;=========================================================================
178
;
180
;
Line 356... Line 358...
356
    jz    apm_end                ; APM 32-bit protected-mode interface not supported
358
    jz    apm_end                ; APM 32-bit protected-mode interface not supported
357
    mov    [es : 0x9044], ax        ; Save APM Version
359
    mov    [es : 0x9044], ax        ; Save APM Version
358
    mov    [es : 0x9046], cx        ; Save APM flags
360
    mov    [es : 0x9046], cx        ; Save APM flags
Line 359... Line 361...
359
    
361
    
360
    ; Write APM ver ----
-
 
361
    jmp    @f
-
 
362
msg_apm:db    ' APM x.x ', 0
362
    ; Write APM ver ----
363
@@:    and    ax, 0xf0f
363
    and    ax, 0xf0f
364
    add    ax, '00'
-
 
365
    mov    [msg_apm - 0x10000 + 5], ah
-
 
366
    mov    [msg_apm - 0x10000 + 7], al
-
 
367
    _setcursor 0, 3
364
    add    ax, '00'
-
 
365
    mov    si, msg_apm - 0x10000
-
 
366
    mov    [si + 5], ah
-
 
367
    mov    [si + 7], al
368
    mov    si, msg_apm - 0x10000
368
    _setcursor 0, 3
369
    call    printplain
369
    call    printplain
370
    _setcursor d80x25_top_num,0
370
    _setcursor d80x25_top_num,0
Line 371... Line 371...
371
    ; ------------------
371
    ; ------------------
Line 472... Line 472...
472
    mov    si, time_msg-0x10000
472
    mov    si, time_msg-0x10000
473
    call    print
473
    call    print
474
; get start time
474
; get start time
475
    call    .gettime
475
    call    .gettime
476
    mov    [.starttime-0x10000], eax
476
    mov    [.starttime-0x10000], eax
477
    mov    word [.timer-0x10000], .newtimer-0x10000
477
    mov    word [.timer-0x10000], .newtimer
478
    mov    word [.timer-0x10000+2], cs
478
    mov    word [.timer-0x10000+2], cs
479
.printcfg:
479
.printcfg:
480
    _setcursor 9,0
480
    _setcursor 9,0
481
    mov    si, current_cfg_msg-0x10000
481
    mov    si, current_cfg_msg-0x10000
482
    call    print
482
    call    print
Line 629... Line 629...
629
.oldtimer dd ?
629
.oldtimer dd ?
630
.starttime dd ?
630
.starttime dd ?
631
.bSettingsChanged db ?
631
.bSettingsChanged db ?
632
.timer dd ?
632
.timer dd ?
633
end virtual
633
end virtual
-
 
634
	org $+0x10000
634
.loader_block dd 0
635
.loader_block dd 0
-
 
636
	org $-0x10000
635
.gettime:
637
.gettime:
636
    mov    ah, 0
638
    mov    ah, 0
637
    int    1Ah
639
    int    1Ah
638
    xchg    ax, cx
640
    xchg    ax, cx
639
    shl    eax, 10h
641
    shl    eax, 10h
Line 721... Line 723...
721
    jnz    .waityn
723
    jnz    .waityn
722
    call    putchar
724
    call    putchar
723
    mov    byte [space_msg-0x10000+80], 186
725
    mov    byte [space_msg-0x10000+80], 186
724
    pop    eax
726
    pop    eax
725
    push    cs
727
    push    cs
726
    push    .cont-0x10000
728
    push    .cont
727
    push    eax
729
    push    eax
728
    retf
730
    retf
729
.loadc:
731
.loadc:
730
    pop    eax
732
    pop    eax
731
.cont:
733
.cont: