Files
kernel-study/study/first
2025-12-30 08:19:49 +00:00
..
2025-12-30 08:19:49 +00:00
2025-12-30 08:19:49 +00:00
2025-12-30 08:19:49 +00:00

boot & kernel

1. 어셈블리 컴파일 (바이너리 파일 생성)

nasm -f bin boot.asm -o boot.bin
nasm -f bin kernel.asm -o kernel.bin

2. 디스크 이미지 만들기

boot.bin(512바이트) 뒤에 kernel.bin을 붙입니다.

cat boot.bin kernel.bin > os.img

truncate -s 1440k os.img

qemu-system-x86_64 -drive format=raw,file=os.img -display curses