dosbox-x-vanilla-sdl
dosbox-x-vanilla-sdl copied to clipboard
compile error
opensuse 15 , fairly new emscripten i get a ./core_dynrec/../../fpu/fpu_instructions_x86.h:972:2: error: invalid output constraint '=&am' in asm FPUD_LOAD(fld,DWORD,s)
i read online somewhere emscripten cannot handle inline assembly ?
also had to add #include <endian.h> to the mem.h file
Dynamic core works by translating emulated instructions to native host's instructions on the fly. By now, DOSBox and its variants only have such translator for x86, x86_64 and arm, not for Emscripten/WebAssembly. Try use --disable-dynrec, or just use my makefiles under make_em subdirectory instead of using Autoconf. If you use Autoconf, you should read build_em.txt or you won't get anything useful.
https://github.com/dreamlayers/em-dosbox/issues/64
You need --preload-file media/@/ or something to map your preloaded file path to Emscripten's virtual file system.