OpenCores
URL https://opencores.org/ocsvn/next186_soc_pc/next186_soc_pc/trunk

Subversion Repositories next186_soc_pc

[/] [next186_soc_pc/] [trunk/] [SW/] [BIOS_Next186/] [BIOS_Next186.asm] - Diff between revs 4 and 7

Show entire file | Details | Blame | View Log

Rev 4 Rev 7
Line 1223... Line 1223...
        add     bx, 257-25
        add     bx, 257-25
        jmp     short VESASupported
        jmp     short VESASupported
 
 
; ---------------- VESA fn05
; ---------------- VESA fn05
VESAMemControl:
VESAMemControl:
        test    bx, not 101h                ; BX validation
;        test    bx, not 101h                ; BX validation
        jnz     short VESAGetModeInfo1      ; error
;        jnz     short VESAGetModeInfo1      ; error
        push    cs
        push    cs
        call    VESAMemControlCB
        push    offset VESASupported
        jmp     short VESASupported
;        call    VESAMemControlCB
 
;        jmp     short VESASupported
VESAMemControlCB:
VESAMemControlCB:
 
        pushf
 
        cli
        push    ax
        push    ax
        push    dx
        push    dx
        mov     ax, bx
        mov     ax, bx
        and     ax, 1
        and     ax, 1
        add     al, 8ah
        add     al, 8ah
Line 1243... Line 1246...
        jnz     getpageinfo
        jnz     getpageinfo
        call    flush
        call    flush
        out     dx, ax
        out     dx, ax
        pop     dx
        pop     dx
        pop     ax
        pop     ax
 
        popf
        retf
        retf
getpageinfo:
getpageinfo:
        in      ax, dx
        in      ax, dx
        sub     al, 0ah
        sub     al, 0ah
        and     ax, 7
        and     ax, 7
        xchg    ax, dx
        xchg    ax, dx
        pop     ax
        pop     ax
        pop     ax
        pop     ax
 
        popf
        retf
        retf
 
 
VESAInfo    db  'VESA'
VESAInfo    db  'VESA'
            dw  100h, VESAOEM, 0f000h, 2, 0, VESAModes, 0f000h, 8
            dw  100h, VESAOEM, 0f000h, 2, 0, VESAModes, 0f000h, 8
VESAOEM     db  'Nicolae Dumitrache', 0
VESAOEM     db  'Nicolae Dumitrache', 0

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.