JLOC LINKER FOR MOST BASIC KERNEL
Posted: Sun Feb 17, 2002 12:52 pm
Hey,
I need an example of a JLOC script for just this kernel(flat binnary output by the way):
void test()
{
char mystring[] = "Hi OS";
char *vidmem = (char *) 0xb8000;
// displays 'This works' onscreen
vidmem[0]='T';
vidmem[1]=0x7;
vidmem[2]='h';
vidmem[3]=0x7;
vidmem[4]='i';
vidmem[5]=0x7;
vidmem[6]='s';
vidmem[7]=0x7;
vidmem[8]=' ';
vidmem[9]=0x7;
vidmem[10]='w';
vidmem[11]=0x7;
vidmem[12]='o';
vidmem[13]=0x7;
vidmem[14]='r';
vidmem[15]=0x7;
vidmem[16]='k';
vidmem[17]=0x7;
vidmem[18]='s';
vidmem[19]=0x7;
// Supposed to display "Hi OS"
vidmem[20]=mystring[0];
vidmem[21]=0x7;
vidmem[22]=mystring[1];
vidmem[23]=0x7;
vidmem[24]=mystring[2];
vidmem[25]=0x7;
vidmem[26]=mystring[3];
vidmem[27]=0x7;
vidmem[28]=mystring[4];
vidmem[29]=0x7;
for(;;);
}
Thanks
PS This will work for a tutorial.
I need an example of a JLOC script for just this kernel(flat binnary output by the way):
void test()
{
char mystring[] = "Hi OS";
char *vidmem = (char *) 0xb8000;
// displays 'This works' onscreen
vidmem[0]='T';
vidmem[1]=0x7;
vidmem[2]='h';
vidmem[3]=0x7;
vidmem[4]='i';
vidmem[5]=0x7;
vidmem[6]='s';
vidmem[7]=0x7;
vidmem[8]=' ';
vidmem[9]=0x7;
vidmem[10]='w';
vidmem[11]=0x7;
vidmem[12]='o';
vidmem[13]=0x7;
vidmem[14]='r';
vidmem[15]=0x7;
vidmem[16]='k';
vidmem[17]=0x7;
vidmem[18]='s';
vidmem[19]=0x7;
// Supposed to display "Hi OS"
vidmem[20]=mystring[0];
vidmem[21]=0x7;
vidmem[22]=mystring[1];
vidmem[23]=0x7;
vidmem[24]=mystring[2];
vidmem[25]=0x7;
vidmem[26]=mystring[3];
vidmem[27]=0x7;
vidmem[28]=mystring[4];
vidmem[29]=0x7;
for(;;);
}
Thanks
PS This will work for a tutorial.