Reduce bootloader messages
This commit is contained in:
parent
69faf5f377
commit
aad69e8a6c
1 changed files with 25 additions and 96 deletions
|
|
@ -13,71 +13,6 @@ vesa:
|
|||
.edid:
|
||||
cmp dword [.required], 0 ;if both required x and required y are set, forget this
|
||||
jne near .findmode
|
||||
mov ax, 0x4F15
|
||||
mov bx, 1
|
||||
xor cx, cx
|
||||
xor dx, dx
|
||||
mov di, VBEEDID
|
||||
int 0x10
|
||||
cmp ax, 0x4F
|
||||
jne near .noedid
|
||||
xor di, di
|
||||
.lp:
|
||||
xor cx, cx
|
||||
mov cl, [di+VBEEDID.standardtiming]
|
||||
shl cx, 3
|
||||
add cx, 248
|
||||
push ecx
|
||||
call decshowrm
|
||||
mov al, 'x'
|
||||
call charrm
|
||||
pop ecx
|
||||
mov bx, cx
|
||||
inc di
|
||||
mov al, [di+VBEEDID.standardtiming]
|
||||
and al, 11000000b
|
||||
cmp al, VBEEDID.aspect.4.3
|
||||
jne .not43
|
||||
mov ax, 3
|
||||
mul cx
|
||||
mov cx, ax
|
||||
shr cx, 2
|
||||
jmp .gotres
|
||||
.not43:
|
||||
cmp al, VBEEDID.aspect.5.4
|
||||
jne .not54
|
||||
shl cx, 2
|
||||
mov ax, cx
|
||||
mov cx, 5
|
||||
xor dx, dx
|
||||
div cx
|
||||
mov cx, ax
|
||||
jmp .gotres
|
||||
.not54:
|
||||
cmp al, VBEEDID.aspect.16.10
|
||||
jne .not1610
|
||||
mov ax, 10
|
||||
mul cx
|
||||
mov cx, ax
|
||||
shr cx, 4
|
||||
jmp .gotres
|
||||
.not1610:
|
||||
mov ax, 9
|
||||
mul cx
|
||||
mov cx, ax
|
||||
shr cx, 4
|
||||
.gotres:
|
||||
call decshowrm
|
||||
mov si, .edidmsg
|
||||
call printrm
|
||||
inc di
|
||||
cmp di, 8
|
||||
jb .lp
|
||||
jmp .findmode
|
||||
.noedid:
|
||||
mov si, .noedidmsg
|
||||
call printrm
|
||||
jmp .findmode
|
||||
.resetlist:
|
||||
;if needed, reset mins/maxes/stuff
|
||||
xor cx, cx
|
||||
|
|
|
|||
Loading…
Reference in a new issue