flat assembler
Message board for the users of flat assembler.

Index > Main > Basic OS loading with bootstrep questions

Author
Thread Post new topic Reply to topic
vargadanis



Joined: 09 Feb 2008
Posts: 9
vargadanis
No I am not willing to write the OS in basic. Smile

So I got to a point where I understand the boot process of the comp. More or less. I have a bootstrap program that writes string to the monitor (by writing the video memory) and I have a stack set up.
I just don't know whats next.
I would like to have the simplest system. I dont want any FS. Is it possible to write a binary file to the floppy right after the boot sector and I load it?
Yeah... by the way.. How do I do that? I mean how do I load the app to the memory and pass control to it?
Post 09 Feb 2008, 15:44
View user's profile Send private message MSN Messenger Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17714
Location: In your JS exploiting you and your system
revolution
Search for info about int 0x13 functions in the BIOS. There are already many examples on this very BB of boot sectors and loaders etc.
Post 09 Feb 2008, 15:50
View user's profile Send private message Visit poster's website Reply with quote
vargadanis



Joined: 09 Feb 2008
Posts: 9
vargadanis
k.. will do that
Post 09 Feb 2008, 16:05
View user's profile Send private message MSN Messenger Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4242
Location: 2018
edfed
yeah, goto os construction/
Post 09 Feb 2008, 16:20
View user's profile Send private message Visit poster's website Reply with quote
Mac2004



Joined: 15 Dec 2003
Posts: 313
Mac2004
vargadanis: My boot loader example may help you....

http://board.flatassembler.net/topic.php?t=6529

regards,
Ma2004
Post 09 Feb 2008, 17:21
View user's profile Send private message Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4242
Location: 2018
edfed
http://board.flatassembler.net/topic.php?p=69937#69937
this contain a good basis for Os development, and as you're new, i tell you this:
to speak about OS construction, there is a topic, named OS CONSTRUCTION.
Post 09 Feb 2008, 17:45
View user's profile Send private message Visit poster's website Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2341
Location: Usono (aka, USA)
rugxulo
vargadanis wrote:
I would like to have the simplest system. I dont want any FS. Is it possible to write a binary file to the floppy right after the boot sector and I load it?


Many Forth language environments support writing to "blocks", which are just tiny chunks of the disk without needing any file system.

http://www.forth.org/ (especially check out Forth compilers)

EDIT: Okay, not technically assembly-related, but Forth is pretty low level in most ways (and many are written in asm, so ...).
Post 13 Feb 2008, 05:26
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.