Page 1 of 1

gui functionality in new os for newbie

Posted: Fri Mar 30, 2001 12:00 am
by Eddiec
I have decide to make my own operating system
using assembly language and the nasm assembler.
Is there a library that I can use that will allow
me to access either the video interupts or hardware
directly in protected mode. I have DJGPP but will it
work with an alternate operating system (one that
will not be dos based)??

RE:gui functionality in new os for newbie

Posted: Fri Mar 30, 2001 12:00 am
by Guest
>On 2001-03-30 13:31:18, Eddiec wrote:
>I have decide to make my own operating system
>using assembly language and the nasm assembler.

That's a no-go. You really want to use a 3rd or 4th
generation language or you'll be hating life or
insane...

It may seem more complex at first but it'll save
you SO much effort...

>Is there a library that I can use that will allow
>me to access either the video interupts or hardware
>directly in protected mode.

That is one of the biggest flaws of PC hardware.
Some new video cards present a 32 bit interface
(see VESA 2). But as a general rule you must
either implement a "callback" to DOS or the BIOS
or spend the rest of your life studying chipset
manuals.

>I have DJGPP but will it work with an alternate
> operating system (one that will not be dos based)??

I don't know enough about the DJGPP system but it
would seem that it can produce general 32 bit
executables. The only real problem once you have
written the kernel of your new OS is rewriting
certain key libraries to call your kernel's
services instead of their DOS counterparts...