Subversion Repositories Kolibri OS

Rev

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

Rev 3536 Rev 3537
Line 69... Line 69...
69
format binary as "mnt"
69
format binary as "mnt"
Line 70... Line 70...
70
 
70
 
71
include 'macros.inc'
71
include 'macros.inc'
Line 72... Line 72...
72
include 'struct.inc'
72
include 'struct.inc'
Line 73... Line 73...
73
 
73
 
Line 74... Line 74...
74
$Revision: 3536 $
74
$Revision: 3537 $
Line 387... Line 387...
387
        mov     [apm_vf], eax
387
        mov     [apm_vf], eax
388
; -----------------------------------------
388
; -----------------------------------------
389
        mov     al, [BOOT_VAR+BOOT_DMA]            ; DMA access
389
        mov     al, [BOOT_VAR+BOOT_DMA]            ; DMA access
390
        mov     [allow_dma_access], al
390
        mov     [allow_dma_access], al
391
        movzx   eax, byte [BOOT_VAR+BOOT_BPP]      ; bpp
391
        movzx   eax, byte [BOOT_VAR+BOOT_BPP]      ; bpp
392
        mov     [ScreenBPP], al
-
 
393
 
-
 
394
        mov     [_display.bpp], eax
392
        mov     [_display.bpp], eax
395
        mov     [_display.vrefresh], 60
393
        mov     [_display.vrefresh], 60
Line 396... Line 394...
396
 
394
 
397
        movzx   eax, word [BOOT_VAR+BOOT_X_RES]; X max
395
        movzx   eax, word [BOOT_VAR+BOOT_X_RES]; X max
Line 447... Line 445...
447
        jmp     v20ga24
445
        jmp     v20ga24
Line 448... Line 446...
448
 
446
 
449
setvesa20:
447
setvesa20:
450
        mov     [PUTPIXEL], dword Vesa20_putpixel24 ; Vesa 2.0
448
        mov     [PUTPIXEL], dword Vesa20_putpixel24 ; Vesa 2.0
451
        mov     [GETPIXEL], dword Vesa20_getpixel24
449
        mov     [GETPIXEL], dword Vesa20_getpixel24
452
        cmp     [ScreenBPP], byte 24
450
        cmp     byte [_display.bpp], 24
453
        jz      v20ga24
451
        jz      v20ga24
454
v20ga32:
452
v20ga32:
455
        mov     [PUTPIXEL], dword Vesa20_putpixel32
453
        mov     [PUTPIXEL], dword Vesa20_putpixel32
456
        mov     [GETPIXEL], dword Vesa20_getpixel32
454
        mov     [GETPIXEL], dword Vesa20_getpixel32
Line 4978... Line 4976...
4978
        mov     ax, [Screen_Max_Y]
4976
        mov     ax, [Screen_Max_Y]
4979
        add     eax, 0x00010001
4977
        add     eax, 0x00010001
4980
        mov     [esp+32], eax
4978
        mov     [esp+32], eax
4981
        ret
4979
        ret
4982
.2:                             ; bits per pixel
4980
.2:                             ; bits per pixel
4983
        movzx   eax, byte [ScreenBPP]
4981
        mov     eax, [_display.bpp]
4984
        mov     [esp+32], eax
4982
        mov     [esp+32], eax
4985
        ret
4983
        ret
4986
.3:                             ; bytes per scanline
4984
.3:                             ; bytes per scanline
4987
        mov     eax, [BytesPerScanLine]
4985
        mov     eax, [BytesPerScanLine]
4988
        mov     [esp+32], eax
4986
        mov     [esp+32], eax