Real mode assembly I: Difference between revisions

m
remove floppy references
[unchecked revision][unchecked revision]
No edit summary
m (remove floppy references)
Line 17:
 
== So what's it going to look like? ==
Well, there will be a single source file, the kernel. What about a [[bootloader]]? This is such a small kernel, we're not going to use a filesystem at all, we're just going to put the kernel into the first few sectors of the floppydisk image!
 
The system will have a string printing call (of course), keyboard input, and a strcmp call similar to that of C, all packaged into less than a sector.
Line 195:
<source lang="bash">
nasm kernel.asm -f bin -o kernel.bin
dd if=kernel.bin of=/dev/fd0sda
</source>
 
Those commands assemble your kernel binary and write them to the first floppydisk (sda might be your system disk, so use sdb, sdc etc. according to your configuration. USB-sticks also appear as one of the "sd" devices). Go ahead and test out your operating system now!
 
== What next? ==
Why, that's up to you of course! You could add more commands, expand your OS to another sector and learn to use the BIOS floppysector load functions, add a stack and improve the calls, etc.
 
Have fun with your OS, however you decide to write it!
Anonymous user