Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

assembly resolution boot hex while

$
0
0
i need help to make bios support 1366x768 , for the moment useless resolution
the code:
;i found this on net and i am experimenting with bios.

mov ah, 0x00 ;video mode
mov al, 13h ;res needed 1366x768 whats that in hex and it gives me an error in NASM when applied a 111h for example
int 0x10 ;video interrupt

mov ah, 0x09 ;WritePixelOnScreen [wiki]
mov al, 0x0F ;color - White
mov bh, 0x00 ;page no.
mov cx, 1 ;x
mov DX, 1 ;y
int 0x10 ;interrupt

mov cx, 2 ;x
mov dx, 1 ;y
int 0x10 ;interrupt

mov cx, 3 ;x
mov dx, 1 ;y
int 0x10 ;interrupt

jmp $ ;hang

;Data

TIMES 510 - ($ - $$) db 0 ;filler
DW 0xAA55 ;boot signature

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>