Tutorials in C

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.
Post Reply
Programmer

Tutorials in C

Post by Programmer »

I know the basic of C language, do you know any good tutorial to learn advanced C programming to help me in writing my OS
How can I know the id of the memory and hardware lik "0x10h"
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Tutorials in C

Post by Pype.Clicker »

what do you consider as "advanced" ? having dynamic structures like trees and lists ? performing strings operations ?

What exactly do you mean by "hardware lik 0x10h" ? Are you looking for memory assignment (see perica's tutorial on BonaFide for a quicklook) ? or I/O ports (google for HelpPC) or BIOS interrupt 0x10 (see Ralf Brown's Interrupt List) ?
mr. xsism

Re:Tutorials in C

Post by mr. xsism »

one of my netizens friends is writing a tutoiral for osdever.net. I'll give you a sneak peak. Hint: it is a very good tutorial.

It should be attacked to this and is about 22.8KB


mr. xsism
shouts:
hi timR, pype, df. How's it going guys? Everything dandy?
osmaker, s_parlane, beyond, warmaster. Hi.
Fukuda

Re:Tutorials in C

Post by Fukuda »

Also ı need a c tutorial which explains :

inline assambly instruction syntax
pragma instruction and using it
attribute instruction (_attribute_ packed ...)

thanks.
Tim

Re:Tutorials in C

Post by Tim »

For these, look up the documentation that came with the C compiler you're using. They're not part of the standard C language. It looks like you're using gcc, so run "info gcc" and go to "C Extensions". Alternatively, you should find the gcc manual on the web (try http://www.gnu.org/software/gcc/).
Programmer

Re:Tutorials in C

Post by Programmer »

Yes I want to know the IO ports and Memory IDs and how to deal with them.
Tim

Re:Tutorials in C

Post by Tim »

OK, what device do you want to program?
Programmer

Re:Tutorials in C

Post by Programmer »

I want a to program the VGA , Mouse and KeyBoard devices.
Tim

Re:Tutorials in C

Post by Tim »

Go to http://www.nondot.org/sabre/os/. You should find all the information you need there.
Post Reply