NASM - The Netwide Assembler

NASM Forum => Programming with NASM => Topic started by: lukassevc on May 16, 2019, 06:23:51 AM

Title: how to switch video modes (switching to VESA video modes too) in protected mode
Post by: lukassevc on May 16, 2019, 06:23:51 AM
Hi, I am Lukas,
and I am writing my operating system but I have problem with switching video modes ( switching to VESA modes too ) because I don't know how to do it and I don't found any tutorial on it so I need help. I know that in real mode it can by done by using ah = 0x00 and with interruption 0x10, but I am in protected mode so I don't know how to do it. Can someone help me please?
Thanks for any help!
Title: Re: how to switch video modes (switching to VESA video modes too) in protected mode
Post by: fredericopissarra on May 16, 2019, 11:43:33 AM
http://www.petesqbsite.com/sections/tutorials/tuts/vbe3.pdf

See "Obtaining the Protected Mode Entry Point", page 21 -- this is NOT available in all implementations and I was never been able to make it work properly...
Title: Re: how to switch video modes (switching to VESA video modes too) in protected mode
Post by: lukassevc on May 16, 2019, 03:58:44 PM
http://www.petesqbsite.com/sections/tutorials/tuts/vbe3.pdf

See "Obtaining the Protected Mode Entry Point", page 21 -- this is NOT available in all implementations and I was never been able to make it work properly...

I read it, and it seems to that it can work properly, but can you please tell me how to do it in C language?
Thanks!
Title: Re: how to switch video modes (switching to VESA video modes too) in protected mode
Post by: fredericopissarra on May 17, 2019, 12:29:30 PM
I read it, and it seems to that it can work properly, but can you please tell me how to do it in C language?
I could, but I thought this forum was about assembly language, isn't it?