0 Replies - 1578 Views - Last Post: 19 February 2013 - 05:47 PM Rate Topic: -----

#1 Scanner000  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 19-February 13

assembly resolution boot hex while

Posted 19 February 2013 - 05:47 PM

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

Is This A Good Question/Topic? 0
  • +

Page 1 of 1