Search found 15 matches
- Mon Feb 21, 2011 3:06 am
- Forum: General Programming
- Topic: Kernel trouble
- Replies: 19
- Views: 169727
Re: Kernel trouble
from http://wiki.osdev.org/Bochs : interrupt(): gate descriptor is not valid sys seg You have not loaded an IDT, or the IDT is corrupt ok since pmode is active interrupt 8 is a double fault, and interrupt 0x0D or 13 is a GPF so your kernel is double faulting, then raises a GPF, then double faults ag...
- Tue Feb 08, 2011 9:36 pm
- Forum: Beginning OS Development
- Topic: Problem with bootloader
- Replies: 8
- Views: 38983
Re: Problem with bootloader
if your using NASM for your assembler this will be a problem: TIMES 0Bh-$+start DB 0 also if im correct $ does not output a pure number and as such cant be used on its own its obvious you copied the TIMES 510-($-$$) db 0 line without fully understanding how it works in NASM i suggest instead of usin...
- Sat Jan 22, 2011 9:24 pm
- Forum: Article Feedback
- Topic: small error in the exceptions
- Replies: 0
- Views: 67279
small error in the exceptions
Large Edit: according to the Intel Manual Volume 3A, Chapter 6, Section 12.1, Figure 6-4: if the privilege level doesn't change (meaning the exception happened in CPL 0) the stack is: EFLAGS CS EIP Error Code so the parameter definitions should be according to the cdecl calling convention (unsigned ...
- Thu Jun 10, 2010 2:01 am
- Forum: Advanced OS Development
- Topic: GUI progress bar issue
- Replies: 1
- Views: 45775
GUI progress bar issue
not sure where this topic should go (either here or graphics programming) but anyway: well i implemented a progress bar into my os (or rather tried) and it works for the most part..... i have this for my ProgressBarSetFill() function: void ProgressBarSetFill(PROGBAR bar, byte fill) { float tmp = (fl...
- Thu Jun 10, 2010 12:17 am
- Forum: Beginning OS Development
- Topic: IRQ question
- Replies: 7
- Views: 35056
Re: IRQ question
no the interrupt doesn't need to be set. to simulate a clock you could read from the RTC at startup, then use the PIT to increment the value. the NMI only needs to be disabled when programming the RTC, however if you wish to have a handler for the NMI (which can be very useful in the even of hardwar...
- Wed Jun 09, 2010 11:49 pm
- Forum: Beginners
- Topic: Simplest c++ os dev tutorial help????????
- Replies: 3
- Views: 56286
Re: Simplest c++ os dev tutorial help????????
So you want a simple tutorial that shows you how to make an OS that prints a string of text onto the screen using VGA? I don't know any tutorials that show how to print a string of text onto the screen in VGA mode in C++. However the Graphics Chapter 1 shows you how to plot pixels in Assembly. Also ...
- Wed Jun 09, 2010 7:24 pm
- Forum: C and C++
- Topic: Visual C++ compiling help
- Replies: 22
- Views: 172358
Re: Visual C++ compiling help
Thanks that worked. Well i know now that the Visual C++ will give an error that isn't very informative. Thanks again.
- Wed Jun 09, 2010 6:43 pm
- Forum: C and C++
- Topic: Visual C++ compiling help
- Replies: 22
- Views: 172358
Re: Visual C++ compiling help
but the thing is i don't return the PROGBAR struct in any function i only return its index in the array. yea i know i could define the PROGBAR without the typedef after the struct like this: typedef struct PROGBAR_//My progress bar struct for drawing { bool used; int x; int y; int width; int height;...
- Wed Jun 09, 2010 5:55 pm
- Forum: C and C++
- Topic: Visual C++ compiling help
- Replies: 22
- Views: 172358
Re: Visual C++ compiling help
I defined PROGBAR_: struct PROGBAR_//My progress bar struct for drawing { bool used; int x; int y; int width; int height; byte color; byte fill; }; And I meant i never defined a pointer to PROGBAR_. And i don't define anything in GUIInit() except for the variable "i" used in the for loop. So do i ha...
- Wed Jun 09, 2010 8:24 am
- Forum: C and C++
- Topic: Visual C++ compiling help
- Replies: 22
- Views: 172358
Visual C++ compiling help
tell me how this works: i get this error when compiling: Error 8 error LNK2019: unresolved external symbol "struct PROGBAR_ * list" (?list@@3PAUPROGBAR_@@A) referenced in function "void __cdecl GUIInit(int)" (?GUIInit@@YAXH@Z) C:\Users\(no need to know my name :) )\Documents\Accel OS\Install\Floppy\...
- Wed Jun 09, 2010 2:45 am
- Forum: Beginning OS Development
- Topic: IRQ question
- Replies: 7
- Views: 35056
Re: IRQ question
Info on the RTC: http://wiki.osdev.org/RTC (MUST READ THIS)
Writing/reading the date to/from the RTC: http://wiki.osdev.org/CMOS#The_Real-Time_Clock (read this if you want to get the date from the RTC)
Hope that helps.
BTW wiki.osdev.org is an awesome resource for os developers
Writing/reading the date to/from the RTC: http://wiki.osdev.org/CMOS#The_Real-Time_Clock (read this if you want to get the date from the RTC)
Hope that helps.
BTW wiki.osdev.org is an awesome resource for os developers

- Sun Jun 06, 2010 8:40 pm
- Forum: Advanced OS Development
- Topic: sin() and arccos() implementations
- Replies: 2
- Views: 49211
Re: sin() and arccos() implementations
Yes that helps, thanks. I understand the taylor series now, but not the other example you gave. Anyway it shouldn't be too hard to implement the taylor series into my OS. If its too slow I'll just try to understand the other example you gave. Again thanks. EDIT: I got this code for sin(x): double si...
- Sun Jun 06, 2010 5:54 am
- Forum: Advanced OS Development
- Topic: sin() and arccos() implementations
- Replies: 2
- Views: 49211
sin() and arccos() implementations
I've been searching for two hours now on how I can implement sin() and arccos() for my standard headers in my os. So far I don't understand how how computers calculate the sine of an angle with only the angle. I'm going into algebra 2 next year and I've even tried making the function myself, with no...
- Sun Jun 06, 2010 12:09 am
- Forum: Article Feedback
- Topic: questions/suggestions about the os dev series
- Replies: 1
- Views: 45984
questions/suggestions about the os dev series
Will the graphics section and kernel section meet later in the tutorials because i can think of a reason why they should (or need to, based on the topics you'll cover later): If are going to cover loading and displaying bitmaps or GUI later the two tutorials will have to meet. Maybe you could also g...
- Mon Dec 07, 2009 3:55 am
- Forum: General Questions
- Topic: Questions about the series
- Replies: 2
- Views: 57345
Questions about the series
First of all hi.
Ok, so in chapter 22 you'll be going over File systems and the VFS. Will you be including the HDD? And you mentioned VGA, SVGA and VBE, i suggest VBE after you make a tut on v86 mode. 256 color mode should be fine for that chapter.
