Subversion Repositories Kolibri OS

Rev

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

Rev 2436 Rev 2438
Line 67... Line 67...
67
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
67
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 68... Line 68...
68
 
68
 
69
include 'macros.inc'
69
include 'macros.inc'
Line 70... Line 70...
70
include 'struct.inc'
70
include 'struct.inc'
Line 71... Line 71...
71
 
71
 
Line 72... Line 72...
72
$Revision: 2436 $
72
$Revision: 2438 $
Line 400... Line 400...
400
@@:
400
@@:
401
        mov     eax, [_display.width]
401
        mov     eax, [_display.width]
402
        mul     [_display.height]
402
        mul     [_display.height]
403
        mov     [_WinMapSize], eax
403
        mov     [_WinMapSize], eax
Line -... Line 404...
-
 
404
 
-
 
405
        call    calculate_fast_getting_offset_for_WinMapAddress
404
 
406
 
405
        mov     esi, BOOT_VAR+0x9080
407
        mov     esi, BOOT_VAR+0x9080
406
        movzx   ecx, byte [esi-1]
408
        movzx   ecx, byte [esi-1]
407
        mov     [NumBiosDisks], ecx
409
        mov     [NumBiosDisks], ecx
408
        mov     edi, BiosDisksData
410
        mov     edi, BiosDisksData
Line 4791... Line 4793...
4791
 
4793
 
Line 4792... Line 4794...
4792
        ret
4794
        ret
4793
 
4795
 
-
 
4796
paleholder:
-
 
4797
        ret
-
 
4798
;------------------------------------------------------------------------------
-
 
4799
align 4
-
 
4800
calculate_fast_getting_offset_for_WinMapAddress:
-
 
4801
; calculate data area for fast getting offset to _WinMapAddress
-
 
4802
        mov     eax, [_display.width]
-
 
4803
        mov     ecx, [_display.height]
-
 
4804
        inc     ecx
4794
paleholder:
4805
        mov     edi, d_width_calc_area
-
 
4806
        cld
-
 
4807
@@:
-
 
4808
        stosd
-
 
4809
        add     eax, [_display.width]
-
 
4810
        dec     ecx
-
 
4811
        jnz     @r
4795
        ret
4812
        ret
4796
 
4813
;------------------------------------------------------------------------------
4797
align 4
4814
align 4
4798
set_screen:
4815
set_screen:
Line 4828... Line 4845...
4828
        stdcall kernel_alloc, eax
4845
        stdcall kernel_alloc, eax
4829
        mov     [_WinMapAddress], eax
4846
        mov     [_WinMapAddress], eax
4830
        test    eax, eax
4847
        test    eax, eax
4831
        jz      .epic_fail
4848
        jz      .epic_fail
Line -... Line 4849...
-
 
4849
 
-
 
4850
        call    calculate_fast_getting_offset_for_WinMapAddress
4832
 
4851
 
Line 4833... Line 4852...
4833
        popad
4852
        popad
4834
 
4853
 
4835
        call    repos_windows
4854
        call    repos_windows