flat assembler
Message board for the users of flat assembler.

Index > OS Construction > NOS kernel not loading, oddly enough...

Author
Thread Post new topic Reply to topic
nkeck72



Joined: 28 May 2015
Posts: 83
Location: 0000:7C00
nkeck72
I am having issues loading the kernel for my OS. You can find a .tar.gz file for it here:

https://sourceforge.net/p/nosanopensourcefasmos/code/ci/master/tree/NOS-1.0.4.tar.gz?format=raw

The error occurs when loading the Filesystem Block, or FSB, into RAM. the MBR code then tries to read the kernel location from that block. It ends up getting the wrong data from the block when it is in RAM, but idk why. If you guys will try this on your own, and tell me if you have any issues.

My only clue to the error is that Bochs, what I am using to test my OS, when I load the CHS value for the location of the kernel on the disk from RAM, says in the status window:
Quote:
[BIOS]: INT 13 read/write/verify: parameter out of range; returning fail.


With my luck it is something simple I am overlooking. Smile

_________________
It may look hard, but it won't take long if you take it one byte at a time.

NOS: www.github.com/nkeck720/nos
Post 12 Jul 2015, 02:03
View user's profile Send private message Visit poster's website Reply with quote
Mike Gonta



Joined: 26 Dec 2010
Posts: 238
Location: the-ideom
Mike Gonta
nkeck72 wrote:
The error occurs when loading the Filesystem Block, or FSB, into RAM. the MBR code then tries to read the
kernel location from that block. It ends up getting the wrong data from the block when it is in RAM, but idk why.
myos.asm wrote:
Code:
kernel_load:
        ;; Load the filesystem into RAM
        mov ah, 02h
        mov al, 01h
        mov ch, 00h
        mov dh, 00h
        mov cl, 01h    
Sector numbering starts at 1.

_________________
Mike Gonta
the-ideom - now you know how to compile

https://mikegonta.com
Post 12 Jul 2015, 08:52
View user's profile Send private message Visit poster's website Reply with quote
nkeck72



Joined: 28 May 2015
Posts: 83
Location: 0000:7C00
nkeck72
Comment Removed.

_________________
It may look hard, but it won't take long if you take it one byte at a time.

NOS: www.github.com/nkeck720/nos
Post 12 Jul 2015, 15:25
View user's profile Send private message Visit poster's website 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-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.