#!/bin/sh # doas pkg_add nasm qemu [ -f bootloader.img ] || nasm -o bootloader.img bootloader.asm [ -f kernel.img ] || nasm -o kernel.img kernel.asm cat bootloader.img kernel.img > disk.img exec qemu-system-i386 -drive file=disk.img,format=raw