akkartik / mu

Soul of a tiny new machine. More thorough tests → More comprehensible and rewrite-friendly software → More resilient society.
http://akkartik.name/akkartik-convivial-20200607.pdf
Other
1.35k stars 47 forks source link

Add v86 example, currently not working #49

Closed jackrusher closed 6 months ago

jackrusher commented 3 years ago

This adds a browser subdirectory with everything needed to boot an emulated Pentium with SeaBIOS and a VGA BIOS that tries to load a bootable hard drive image from the file code.img in the same directory. My attempts to actually run a Mu image currently fail with some bad VGA memory and an exception visible in the console. Hopefully you'll be able to debug whatever incompatibility might exist between Mu and this emulator.

akkartik commented 2 years ago

Jack and I spent several weeks around the time this ticket was created, trying to get Mu working on https://github.com/copy/v86, but quite without success. I also saw signs that Mu is quite slow on v86 except on Chrome on some platforms. (I wasn't able to characterize precisely what platforms. Mac OS of some varieties.) Many thanks, Jack. Hopefully I'll work on this again sometime.

copy commented 6 months ago

There is a bug in v86 related to the interrupt mask in the pic. I'll push a fix soon.

copy commented 6 months ago

This has been fixed in v86. I've added a profile here: https://copy.sh/v86/?profile=mu

You can download it from here: https://github.com/copy/v86/releases

Note that to get it to work, you need the v86.wasm file. I also had to raise the memory size to 128m.

akkartik commented 6 months ago

Thanks so much!! I just noticed it on the Advent of v86 calendar.