flat assembler
Message board for the users of flat assembler.

Index > OS Construction > Calling my own kernel from my own boot loader

Author
Thread Post new topic Reply to topic
MarcoAlves



Joined: 09 Jun 2006
Posts: 30
MarcoAlves 19 Jun 2006, 12:53
Hi all.

I'm new on asm and os construction. But a senior hll programmer.

I'm trying to load my kernel from my own boot loader. But without success.

I think that the problem is on a combination of factors, such as
use16, ORG 0x7C00, and that my kernel resides in other object file.

Some cases, when I make:

Code:
use16 ; for boot loader

extrn labelname
call labelname
    


it simply doesn't compile.

But, if a make in a test file :

Code:
use32

extrn labelname
call labelname
    


It compiles.

More. If I TRY to

Code:
use32

ORG 0x7C00 ; The BIOS loads the boot sector into this memory location

extrn labelname
call labelname
    


It doesn't compiles, too.

Please, explain WHY this happens.
How I can load my kernel written in C from my own asm bootloader? I don't want to link both together. I just they
resides in separate binary files.

I wanna understand the bits.

The code is attached.

Please help-me.

Thanks in advance.

Best regards,
Marco Alves.


Description:
Download
Filename: boot.asm
Filesize: 1.84 KB
Downloaded: 318 Time(s)

Post 19 Jun 2006, 12:53
View user's profile Send private message Reply with quote
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Dex4u 19 Jun 2006, 15:06
This link may help you with your problem
http://www.elet.polimi.it/upload/fornacia/progetto_minazzi/index.html
as well as reading the info the info, get the source "scr.zip"
Post 19 Jun 2006, 15:06
View user's profile Send private message Reply with quote
MarcoAlves



Joined: 09 Jun 2006
Posts: 30
MarcoAlves 19 Jun 2006, 16:09
I'd tried to download src.zip but the server responds "Method Not Allowed". Do you've this file and can put it here?
Post 19 Jun 2006, 16:09
View user's profile Send private message Reply with quote
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Dex4u 19 Jun 2006, 19:18
I try this:


Description:
Download
Filename: src.zip
Filesize: 10.34 KB
Downloaded: 330 Time(s)

Post 19 Jun 2006, 19:18
View user's profile Send private message Reply with quote
MarcoAlves



Joined: 09 Jun 2006
Posts: 30
MarcoAlves 19 Jun 2006, 20:46
thx a lot
Post 19 Jun 2006, 20:46
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.