Subversion Repositories Kolibri OS

Rev

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

Rev 1273 Rev 1275
Line 55... Line 55...
55
;;
55
;;
56
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
56
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 57... Line 57...
57
 
57
 
Line 58... Line 58...
58
include 'macros.inc'
58
include 'macros.inc'
Line 59... Line 59...
59
 
59
 
Line 60... Line 60...
60
$Revision: 1273 $
60
$Revision: 1275 $
Line 347... Line 347...
347
; -----------------------------------------
347
; -----------------------------------------
348
;        movzx eax,byte [BOOT_VAR+0x9010]  ; mouse port
348
;        movzx eax,byte [BOOT_VAR+0x9010]  ; mouse port
349
;        mov   [0xF604],byte 1  ;al
349
;        mov   [0xF604],byte 1  ;al
350
        mov     al, [BOOT_VAR+0x901F]   ; DMA access
350
        mov     al, [BOOT_VAR+0x901F]   ; DMA access
351
        mov     [allow_dma_access], al
351
        mov     [allow_dma_access], al
352
        mov   al,[BOOT_VAR+0x9000]        ; bpp
352
        movzx eax, byte [BOOT_VAR+0x9000]        ; bpp
353
        mov   [ScreenBPP],al
353
        mov   [ScreenBPP],al
Line -... Line 354...
-
 
354
 
-
 
355
        mov [_display.bpp], eax
-
 
356
        mov [_display.vrefresh], 60
354
 
357
 
-
 
358
        movzx eax,word [BOOT_VAR+0x900A]  ; X max
355
        movzx eax,word [BOOT_VAR+0x900A]  ; X max
359
        mov [_display.width], eax
356
        dec   eax
360
        dec   eax
357
        mov   [Screen_Max_X],eax
361
        mov   [Screen_Max_X],eax
358
        mov   [screen_workarea.right],eax
362
        mov   [screen_workarea.right],eax
-
 
363
        movzx eax,word [BOOT_VAR+0x900C]  ; Y max
359
        movzx eax,word [BOOT_VAR+0x900C]  ; Y max
364
        mov [_display.height], eax
360
        dec   eax
365
        dec   eax
361
        mov   [Screen_Max_Y],eax
366
        mov   [Screen_Max_Y],eax
362
        mov   [screen_workarea.bottom],eax
367
        mov   [screen_workarea.bottom],eax
363
        movzx eax,word [BOOT_VAR+0x9008]  ; screen mode
368
        movzx eax,word [BOOT_VAR+0x9008]  ; screen mode
Line 367... Line 372...
367
        mov   [BytesPerScanLine],word 640*4         ; Bytes PerScanLine
372
        mov   [BytesPerScanLine],word 640*4         ; Bytes PerScanLine
368
        cmp   [SCR_MODE],word 0x13          ; 320x200
373
        cmp   [SCR_MODE],word 0x13          ; 320x200
369
        je    @f
374
        je    @f
370
        cmp   [SCR_MODE],word 0x12          ; VGA 640x480
375
        cmp   [SCR_MODE],word 0x12          ; VGA 640x480
371
        je    @f
376
        je    @f
372
        mov   ax,[BOOT_VAR+0x9001]        ; for other modes
377
        movzx eax, word[BOOT_VAR+0x9001]        ; for other modes
373
        mov   [BytesPerScanLine],ax
378
        mov   [BytesPerScanLine],ax
-
 
379
        mov [_display.pitch], eax
374
@@:
380
@@:
375
        mov     esi, BOOT_VAR+0x9080
381
        mov     esi, BOOT_VAR+0x9080
376
        movzx   ecx, byte [esi-1]
382
        movzx   ecx, byte [esi-1]
377
        mov     [NumBiosDisks], ecx
383
        mov     [NumBiosDisks], ecx
378
        mov     edi, BiosDisksData
384
        mov     edi, BiosDisksData