Hello,
How to use interrupts ( switch to graphics mode ) in protected one?
Also which resolutions are avaiable?
Interrupts ( graphics mode ) in protected mode
Re: Interrupts ( graphics mode ) in protected mode
Hello Neomex,Neomex wrote:Hello,
How to use interrupts ( switch to graphics mode ) in protected one?
Also which resolutions are avaiable?
Basically, you cant use BIOS interrupts under protected mode unless you employ the V86 mode.
The only way to set the mode (unless you are writing a VGA or a graphics card driver) is to perform the mode switch while you are in real mode.
Just search the forum and you'll find similar topics sustaining there.
Programming is not about using a language to solve a problem, it's about using logic to find a solution !
Re: Interrupts ( graphics mode ) in protected mode
So e.g. Windows is running in V86 mode, if wants to change screen resolution?Chandra wrote:Hello Neomex,Neomex wrote:Hello,
How to use interrupts ( switch to graphics mode ) in protected one?
Also which resolutions are avaiable?
Basically, you cant use BIOS interrupts under protected mode unless you employ the V86 mode.
The only way to set the mode (unless you are writing a VGA or a graphics card driver) is to perform the mode switch while you are in real mode.
Just search the forum and you'll find similar topics sustaining there.
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: Interrupts ( graphics mode ) in protected mode
Windows does not normally use the BIOS, it has all the drivers.Neomex wrote:So e.g. Windows is running in V86 mode, if wants to change screen resolution?
Re: Interrupts ( graphics mode ) in protected mode
What I need to know if I want to write one then? And are there any language requirements, like it have to be in asm only?Combuster wrote:Windows does not normally use the BIOS, it has all the drivers.Neomex wrote:So e.g. Windows is running in V86 mode, if wants to change screen resolution?
-
- Member
- Posts: 255
- Joined: Tue Jun 15, 2010 9:27 am
- Location: Flyover State, United States
- Contact:
Re: Interrupts ( graphics mode ) in protected mode
To write a driver, all you need is the documentation for the hardware you're writing for. As for the language, almost any compiled language could do it as long as it can do the following:
1. Access I/O ports.
2. Interface with the kernel for interrupt facilities.
3. Able to write an IRQ in the language.
4. Able to read/write memory at an arbitrary location (this means pointers)
C is the preferred language for such actions due to the ease with which it can access such low-level functionality.
1. Access I/O ports.
2. Interface with the kernel for interrupt facilities.
3. Able to write an IRQ in the language.
4. Able to read/write memory at an arbitrary location (this means pointers)
C is the preferred language for such actions due to the ease with which it can access such low-level functionality.
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: Interrupts ( graphics mode ) in protected mode
Note that #1 and #3 require assembly, and in case of a microkernel, so does #2. That doesn't mean you can't do those parts separately and wrap an interface around them so you can do the majority in your language of choice.
C is only recommended because it has the most people saying it is. The official recommendation is to use the one language capable of low-level development in which you have the most experience. (which for most people boils down to either C or C++)
C is only recommended because it has the most people saying it is. The official recommendation is to use the one language capable of low-level development in which you have the most experience. (which for most people boils down to either C or C++)