提问人:WizOS 提问时间:11/15/2023 更新时间:11/15/2023 访问量:30
qemu 给了我一个我不明白的错误
qemu is giving me an error I don't understand
问:
我正在关注Youtube教程:https://www.youtube.com/watch?v=9t-SPC7Tczc&list=PLFjM7v6KGMpiH2G-kT781ByCNC_0pKpPN
当我们第一次在 qemu 中加载软件时,我得到了这个错误:
wiz@kubuntu:~/Documents/WizOS$ qemu-system-i386 -fda build/main_floppy.img qemu-system-i386: -fda build/main_floppy.img: Could not open 'build/main_floppy.img': No such file or directory
这是我的makefile:
ASM nasm
SRC_DIR=src
BUILD_DIR=build
$(BUILD_DIR)/main_floppy.img: $(BUILD_DIR)/main.bin
cp $(BUILD_DIR)/main.bin $(BUILD_DIR)/main_floppy.img
truncate -s 1440k $(BUILD_DIR)/main.asm
$(BUILD_DIR)/main.bin: $(SRC_DIR)/main.asm
$(ASM) $(SRC_DIR)/main.asm -f bin -o $(BUILD_DIR)/main.bin
这是我的SRC文件:
org ox7C00
bits 16
main:
hlt
.halt:
jmp .halt
times 510-($-$$) db 0
dw 0AA55h
帮助将不胜感激
答: 暂无答案
上一个:如何解决当前出现的错误?
评论
build/main_floppy.img
ls -l build/main_floppy.img
make
wiz@kubuntu:~/Documents/WizOS$ make Makefile:1: *** missing separator. Stop.
ASM := nasm