flat assembler
Message board for the users of flat assembler.

Index > OS Construction > VESA 4f00h - how to read information from buffer?

Author
Thread Post new topic Reply to topic
user7991



Joined: 29 May 2016
Posts: 1
user7991 29 May 2016, 19:34
Hello there!
VESA documentation tells that when I call 4f00h function I have to write to di register the address of info buffer which is recommended to be 512 bytes for VESA 2 and higher.
And there are 16h-19h and 1Ah-1Dh offsets in this buffer that contain far pointers to vendor name string and videocard name string.
Please help how to extract this information from these pointers and how to do it when I work in protected mode? Can I make my info buffer 256 bytes instead of 512 and read these strings? THANK YOU!!!
Documentation, page 28:
http://www.petesqbsite.com/sections/tutorials/tuts/vbe3.pdf
Post 29 May 2016, 19:34
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20361
Location: In your JS exploiting you and your system
revolution 30 May 2016, 04:13
I would presume that "far pointer" means a segment and an offset.
Code:
les si,[vesa_buffer+0x16] ;get name string    
And I would expect that shrinking the buffer to 256 bytes would probably be okay if the function accepts the maximum length as an input (I didn't check).
Post 30 May 2016, 04:13
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.