bochs

Open source x86 PC emulator for running legacy operating systems.

brewmacoslinux
Try with needOr install directly
Source

About

Open source IA-32 (x86) PC emulator written in C++

Commands

bochsbximage

Examples

start emulating a dos operating system$ bochs
create a virtual hard disk image for emulation$ bximage -func create -hd -size=512 -imgmode=flat disk.img
run bochs with a custom configuration file$ bochs -f bochsrc.txt
emulate windows 95 with specific memory and cpu settings$ bochs -q
debug x86 assembly code in an emulated environment$ bochs -dbg