flat assembler
Message board for the users of flat assembler.

Index > OS Construction > Add more bytes

Author
Thread Post new topic Reply to topic
SkiMask11



Joined: 06 Sep 2014
Posts: 8
SkiMask11
On the boot loader:

mov ax, 9ch
mov ss, ax
mov sp, 4096d
mov ax, 7c0h
mov ds, ax
;-------------------------------
times 510-($-$$) db 0
de 0xAA55

How do you give more bytes to the OS. When I change 510 too 600 it will compile and write 602 bytes. But when I load up the OS on virtual box it would get errors because the size is missing. Please help
Post 06 Sep 2014, 17:06
View user's profile Send private message Reply with quote
badc0de02



Joined: 25 Nov 2013
Posts: 216
Location: %x
badc0de02
Ok SkiMask11,

you cant add more bytes as 512 to the Master Boot Recosd (MBR).
you have to make a bootloader what boot your program and load it to the memory.

here some sites what explain:
http://wiki.osdev.org/MBR_%28x86%29
http://wiki.osdev.org/Bootloader

check out the site osdev.org to learn how to build a own Operating System.
Post 06 Sep 2014, 18:18
View user's profile Send private message Reply with quote
SkiMask11



Joined: 06 Sep 2014
Posts: 8
SkiMask11
Thank you
Post 06 Sep 2014, 20:10
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-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.