Page 1 of 1

JLOC LINKER FOR MOST BASIC KERNEL

Posted: Sun Feb 17, 2002 12:52 pm
by dorip
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.

Re: JLOC LINKER FOR MOST BASIC KERNEL

Posted: Mon Feb 18, 2002 11:48 am
by dorip
Come on, someone must know a basic kernel script for jloc. Please help. I procmise to write a tutorial if i get enough info and I succed in what I'm trying to do.
Thank you

Re: JLOC LINKER FOR MOST BASIC KERNEL

Posted: Mon Feb 18, 2002 3:08 pm
by dorip
People, I need help, PPPLLLEEEAAASSSEEE
PLEASE.
Thank you
I realy need help.

Re: JLOC LINKER FOR MOST BASIC KERNEL

Posted: Mon Feb 18, 2002 5:46 pm
by K.J.
Well, I can't help you since I don't use JLoc(to complicated). I was going to email John Fine and ask about a tutorial on it, but it seems that the email address I have for him doesn't exist any more. :(

K.J.

Re:JLOC LINKER FOR MOST BASIC KERNEL

Posted: Wed Jun 12, 2002 8:11 am
by drizzt
Try with this:

[glow=red,2,300]
ALL:
kernel.o

START: 0,000000000
,,,START
CODE: 0
,,code
DATA: 0,#10
,,data
BSS: 0,#10
,,bss
[/glow]

where kernel.o is the binary of your kernel...