Real mode assembly I: Difference between revisions

m
Syntax Highlighting
[unchecked revision][unchecked revision]
m (→‎So where's the code?: added source tags)
m (Syntax Highlighting)
Line 181:
To assemble on Windows:
 
<source lang="bash">
nasm kernel.asm -f bin -o kernel.bin
partcopynasm kernel.binasm 0-f 200bin -f0o kernel.bin
partcopy kernel.bin 0 200 -f0
</source>
 
Or on Linux:
<source lang="bash">
$ nasm kernel.asm -f bin -o kernel.bin
$nasm dd if=kernel.asm -f bin of=/dev/fd0-o kernel.bin
dd if=kernel.bin of=/dev/fd0
</source>
 
Those commands assemble your kernel binary and write them to the first floppy disk. Go ahead and test out your operating system now!
Anonymous user