Bochs + Nasm make your first os

1.First

Install Nasm And Bochs Code the boot .asm

2.use nasm to make the .Bin file

cmd: nasm boot.asm -o boot.bin

3.next step

create an img file.

Cmd:bximage

Choose fd

Choose type

Define the name

Done.

4.then write the boot.bin to a.img

dd if=boot.bin of=a.img bs=512 count=1 conv=notrunc

5.cd Bochs and Edit Options Then choose 10 . Disk Options Then Choose 1. First Floppy Drive

Set the parameter then save the Options to a file

last modify the file insert the statement “floppya: 1_44=/home/ark/OS/a.img, status=inserted”

then Read Options from

begin simulation

Successfully.

原文地址:https://www.cnblogs.com/lfzark/p/2168520.html