Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
I havn't worked on my GUI for a while, i've been doing mainly file format stuff and a bit of my driver interface (all connected y'see) but i thought i'd update this thread anyway.
@balthasar: The first sentence on your site, the last part: "but redone to be less erroriness", doesn't sound 'favorable' to you. A better ending would be "but redone to be more stable and error free."
Just thought I'd add that while we were on the subject.
yay a screenshot of DiNS 1.0C (in development still).
[edit]I changed some configurations shortly after taking that picture. I lowered the tick rate so that the values aren't so high. For example, the printf function now reports 9 ticks and the pci enumeration takes 644 ticks.[/edit]
static void move_cursor()
{
unsigned short cursorLocation = cursor_y * screen_wid + cursor_x; //screen_wid is usually 80
outb(0x3D4, 14); // Tell the VGA board we are setting the high cursor byte.
outb(0x3D5, cursorLocation >> 8); // Send the high cursor byte.
outb(0x3D4, 15); // Tell the VGA board we are setting the low cursor byte.
outb(0x3D5, cursorLocation); // Send the low cursor byte.
}
NOTE: It will make printing to screen slightly slower...
static void move_cursor()
{
unsigned short cursorLocation = cursor_y * screen_wid + cursor_x; //screen_wid is usually 80
outb(0x3D4, 14); // Tell the VGA board we are setting the high cursor byte.
outb(0x3D5, cursorLocation >> 8); // Send the high cursor byte.
outb(0x3D4, 15); // Tell the VGA board we are setting the low cursor byte.
outb(0x3D5, cursorLocation); // Send the low cursor byte.
}
NOTE: It will make printing to screen slightly slower...
-JL
Thanks, is there a VGA specification that tells me all the commands? I've tried google but I keep getting the circuitry specification.