about summary refs log tree commit diff stats
path: root/bochsrc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-03-15 21:59:08 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-03-15 21:59:08 -0700
commit2998866b88f5f946010c07d2ede6eba8e389da6b (patch)
tree038051ac0b788b71783d74a1f0b877262877fe38 /bochsrc
parent2f251aec4d4577ba222da170c2d0e9a00724bac7 (diff)
downloadmu-2998866b88f5f946010c07d2ede6eba8e389da6b.tar.gz
.
Diffstat (limited to 'bochsrc')
-rw-r--r--bochsrc15
1 files changed, 15 insertions, 0 deletions
diff --git a/bochsrc b/bochsrc
new file mode 100644
index 00000000..a1c8a4bc
--- /dev/null
+++ b/bochsrc
@@ -0,0 +1,15 @@
+# Configuration for the Bochs x86 CPU emulator to run baremetal Mu programs
+# See boot.subx for more details.
+#
+# Installing Bochs:
+#   On Mac OS:
+#     brew install bochs
+#   On Ubuntu Linux 20.04:
+#     sudo apt install bochs bochs-sdl bochsbios vgabios
+
+display_library: sdl2
+
+ata0-master: type=disk, path="disk.img", mode=flat, cylinders=20, heads=16, spt=63  # 10MB, 512 bytes per sector
+boot: disk
+# PS/2 mouse requires black magic that I don't know how to explain.
+log: -