Files
2025-12-30 08:33:13 +00:00

21 lines
396 B
Markdown

# boot & kernel
## 1. 어셈블리 컴파일 (바이너리 파일 생성)
```bash
nasm -f bin boot.asm -o boot.bin
nasm -f bin kernel.asm -o kernel.bin
```
## 2. 디스크 이미지 만들기
### boot.bin(512바이트) 뒤에 kernel.bin을 붙입니다.
```bash
cat boot.bin kernel.bin > os.img
truncate -s 1440k os.img
qemu-system-x86_64 -drive format=raw,file=os.img -display curses
```