Anonymous user
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
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/
</source>
Those commands assemble your kernel binary and write them to the first
== 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
Have fun with your OS, however you decide to write it!
|