copy / v86

x86 PC emulator and x86-to-wasm JIT, running in the browser
https://copy.sh/v86/
BSD 2-Clause "Simplified" License
19.87k stars 1.41k forks source link

booting my own assembly program that I compiled fails with "boot failed: could not read the boot device" #1158

Closed FunnyCorgi closed 2 months ago

FunnyCorgi commented 2 months ago

i have an assembly program that prints out "Hello, Felix"(Felix being the name of one of my close friends) I compiled with nasm and runs fine in qemu, but is refuses to boot in v86. Files(compiled and asm) are attached. Hello_felix_assembly.zip

SuperMaxusa commented 2 months ago

How do you mount your program in v86? It works for me when I select the binary file as the floppy image

https://github.com/copy/v86/blob/58d43361499d65e24295b20cb3857f123e261337/src/floppy.js#L97-L98

FunnyCorgi commented 2 months ago

Oh, I'll try that. I was doing it on the HDD.

FunnyCorgi commented 2 months ago

This worked for me. Thanks!