Help for someone starting out. (mainly about keyboard)
Posted: Thu Aug 04, 2005 4:54 pm
Ok here we go first off i would like to say that i know that some of you are going to want to flame this post (well im gessing from common forum behaver) so please if you get the erge to flame go and count to 10 insted help me or go eat some food. i would like to say that my spelling is c*** so i will try and use words i can spell.
ok i will start by outlining what i know so far and what i have done.
1. i have good nolage of how computers function.
2. i am well versed in C++ and a lot of c (i cant always remember but).
3. for what i understand i am trying to make a kernel with the ability to inputout on the screen and hopfully right files to the hd (i would like to do more but i have to walk before i can run )
4. i am use a boot loader that i got off a friend and i have the code for it it is very simple and is made to run off a floppy.
5. so far i have made a basic printf sort of function in a working os that boots and works normaly.
6. i am trying to right all my own function and trying to reduce the number of times i use pre-made headers.
ok my 1st question is is my text output function ok? (code below)
is this code good/bad will it make problems anysugestions on a better one?
ok now my next question im now moving on to imputs and i have read a lot of the miterials i could find and most were very presumptuous for example not telling you what headers they were using or what compiler, etc. can anyone help me with this, examples of code, genral knowlage, etc.
and as for the harddrive stuff i was reading some stuff now i know i will need a new boot loader as my one is only ment for loading off a floppy now i read that you were talking about DOS but isnt DOS a kernel not a boot loader? and also i may ask some more questions about reading and writing to the HD after i have got keyboard imput working and have read more about it. thanks in advance ask me anything u may need to know to help me i will answer to the best of my knowlage.
;D
ok i will start by outlining what i know so far and what i have done.
1. i have good nolage of how computers function.
2. i am well versed in C++ and a lot of c (i cant always remember but).
3. for what i understand i am trying to make a kernel with the ability to inputout on the screen and hopfully right files to the hd (i would like to do more but i have to walk before i can run )
4. i am use a boot loader that i got off a friend and i have the code for it it is very simple and is made to run off a floppy.
5. so far i have made a basic printf sort of function in a working os that boots and works normaly.
6. i am trying to right all my own function and trying to reduce the number of times i use pre-made headers.
ok my 1st question is is my text output function ok? (code below)
Code: Select all
int printf(char *message)
{
???char *source = message;
???char *destination = (char *)0xB8000;
???while (*source)
???{
??????*destination++ = *source++;
??????*destination++ = 7;
???}
???return 0;
}
ok now my next question im now moving on to imputs and i have read a lot of the miterials i could find and most were very presumptuous for example not telling you what headers they were using or what compiler, etc. can anyone help me with this, examples of code, genral knowlage, etc.
and as for the harddrive stuff i was reading some stuff now i know i will need a new boot loader as my one is only ment for loading off a floppy now i read that you were talking about DOS but isnt DOS a kernel not a boot loader? and also i may ask some more questions about reading and writing to the HD after i have got keyboard imput working and have read more about it. thanks in advance ask me anything u may need to know to help me i will answer to the best of my knowlage.
;D