Page 1 of 2
i gotz VGA =]
Posted: Wed Feb 06, 2008 5:14 pm
by lukem95
ok, so yeah its not much, but i got a basic VGA driver implemented using some of Chris Giese's code mixed with some magic i thought up/guessed.
I'm now gonna start on some basic GUI stuff until i get bored, when i'll try for VESA and a remotely decent res (not piddly 320x200x256).
anyway, i had to announce it, cos im well chuffed =]
Posted: Wed Feb 06, 2008 6:38 pm
by 01000101
nice, good job.
chuffed? lol i haven't the foggiest of what that means.
do you have mouse support yet? or are you just doing graphics for the fun of it?
Posted: Wed Feb 06, 2008 7:28 pm
by piranha
Did you use a tutorial or a doc or what? And can you give me the link?
-JL
Posted: Thu Feb 07, 2008 1:20 am
by Combuster
vga graphics are easy.
VGA Hardware
Posted: Thu Feb 07, 2008 3:34 am
by AJ
01000101 wrote:chuffed? lol i haven't the foggiest of what that means.
[url=http://www.urbandictionary.com/define.php?term=chuffed]Definition
- quite a popular expression in the UK.
@OP: Well done! I was very happy having plotted a single pixel on the top corner of the screen in VESA 1024x768x32. Good luck with the window manager.
Cheers,
Adam
Posted: Thu Feb 07, 2008 10:13 am
by xyzzy
Nice, well done. Sometime I should try getting some basic GUI support on top of my VBE driver, currently all I've got with it is a PNG image viewer (still cool, but windows, etc are cooler
)
Posted: Thu Feb 07, 2008 10:35 am
by xyjamepa
Could you put a link to Chris Giese's code.
Thanx.
Posted: Thu Feb 07, 2008 11:34 am
by lukem95
sure, i found it in the wiki by searching VGA... although i never found the page combuster linked to. [EDIT]http://my.execpc.com/~geezer/osd/graphics/modes.c[/EDIT] - forgot link
No i didnt follow a tut, i found some stuff from the DJGPP site on VGA, and used Chris Giese's code and that was all i needed, but the stuff on the wiki looks excellent, im gonna give it a read and extend my VGA driver.
The next step is VESA/VBE however, as 320x200x256 (plus REALLY slow pixel-putting) is not ideal, AlexExtreme maybe we could chat sometime or you could link me to the resources you used?
oh.. i don't have mouse support working yet (or any i/o for that matter). I'm sort of sidetracking for this VGA thing, then its back onto the API, implementing all the syscalls, drivers... and then kb/mouse etc.
Posted: Thu Feb 07, 2008 9:41 pm
by jerryleecooper
That's very good achievement. Having graphics is something us amateur OS developeurs we seek to get, is one major milestone. The others, I guess, would be...
2) devices drivers
3) network
4) filesystem
5) stability, which is involved in each milestones in fact
note that the eacfh ones are not in a particular order. Butr from each of the milestones, graphics is the best.
Posted: Thu Feb 07, 2008 11:50 pm
by pcmattman
I used to have all 5, jerryleecooper, and trust me, it sucks. Once you hit there every single bug you've written and missed decides it's time to show themselves
.
Posted: Fri Feb 08, 2008 2:41 am
by AJ
Absolutely. Once you have all 5, you go from 'adding new features mode' in to 'read through the existing code and debug' mode, which is a lot less fun and takes a lot more patience. This seems to be where a lot of developers get the feeling "maybe I should scrap it and start again - it will be even better next time". Hopefully, this time, I will persist
Cheers,
Adam
Posted: Fri Feb 08, 2008 6:15 am
by t0xic
I think we should add a sixth item to that list
6) Multitasking
I'm proud to say that I got multitasking (software) to finally work last night! VGA is next on my list.[/list]
Posted: Fri Feb 08, 2008 6:26 am
by AJ
Well done. I remember that spark of pride at seeing 'task1task2task1task2task1task2...' on the screen for the first time
Of course, once you have VGA and add SMP support, you then have to start worrying about multiple processes wanting a piece of the screen / keyboard / hdd / fdd... all at once, which is where it gets 'interesting'!
Cheers,
Adam
Posted: Fri Feb 08, 2008 4:54 pm
by jerryleecooper
Multitasking, so true! I was really proud when I got it. But then I realised I got it wrong it didnt work well on vpc and qemu, but's thats another story. Now everythinf works well in my kernel, I accomplished 5) solved the concurrency problems I had with the text printing functions.
Posted: Sun Feb 10, 2008 11:05 am
by piranha
Well, I have the first 5, and I am implementing multitasking now.
-JL