Could someone that is experienced in this kind of stuff help me, please

Either you post here or please add me in MSN Messenger [email protected]

-Jojje
That means you are missing the most fundamental skill required for OS development... :-\Jojje wrote: I suck at reading...
Perhaps you should tell us what exactly went wrong, then. This is called "debugging" and is another very fundamental and required skill.i tried this Tutorial but i coudnt get it working
You know the saying, "give a man a fish and he has food for a day; teach him how to fish and he never has to go hungry again"? You are basically expecting people to spoon-feed you the fish here...Please help me in MSN or something "plzzz"!
Code: Select all
void print( char * msg, unsigned int line )
{
unsigned char * vgamemory = ( unsigned char * ) 0xb8000;
unsigned int i = ( line * 80* 2 );
while( *msg != 0 )
{
vgamemory[ i ] = * msg;
* msg++;
++i;
vgamemory[ i ] = 0x07;
++i;
}
}
void clearscreen( )
{
unsigned char * vgamemory = ( unsigned char * ) 0xb8000;
unsigned int i = 0;
while( i < ( 80 * 25 * 2 ) )
{
vgamemory[ i ] = ' ';
++i;
vgamemory[ i ] = 0x07;
++i;
}
}
int main( void )
{
clearscreen( );
print( "< Fetco Operating System - v1.0 >", 0 );
print( "[ system ]: Ok, there wasn't any errors in the progress of the boot!", 1 );
}
Code: Select all
@echo off
echo Errors:
gcc -c _kernel_main.c -o _kernel_main.o
echo.
ld -e _main -o kernel.sys _kernel_main.o
echo.
ld -i -e _main -o kernel.sys _kernel_main.o
echo.
partcopy boot.bin 0 200 -f0
echo.
copy kernel.sys a:
echo ...
pause
Errors:
_kernel_main.o(.text+0xaf):_kernel_main.c: undefined reference to `_alloca'
_kernel_main.o(.text+0xb4):_kernel_main.c: undefined reference to `__main'
The volume does not contain a recognized file system.
Please make sure that all required file system drivers are loaded and that the v
olume is not corrupted.
0 file(s) copied.
...
Press any key to continue . . .
Jojje wrote: Theese are the problems:Errors:
_kernel_main.o(.text+0xaf):_kernel_main.c: undefined reference to `_alloca'
_kernel_main.o(.text+0xb4):_kernel_main.c: undefined reference to `__main'