JLOC LINKER FOR MOST BASIC KERNEL

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
dorip

JLOC LINKER FOR MOST BASIC KERNEL

Post 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.
dorip

Re: JLOC LINKER FOR MOST BASIC KERNEL

Post 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
dorip

Re: JLOC LINKER FOR MOST BASIC KERNEL

Post by dorip »

People, I need help, PPPLLLEEEAAASSSEEE
PLEASE.
Thank you
I realy need help.
K.J.

Re: JLOC LINKER FOR MOST BASIC KERNEL

Post 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.
drizzt

Re:JLOC LINKER FOR MOST BASIC KERNEL

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