about summary refs log tree commit diff stats
path: root/bochsrc
blob: 7a74312e6257e4eedd9fc99d8029e6b8974ce7bb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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="code.img", mode=flat, cylinders=20, heads=16, spt=63  # 10MB, 512 bytes per sector
boot: disk
mouse: enabled=1, toggle=ctrl+f10
log: -
/r32/esp # . save registers 50/push-eax 52/push-edx # 8b/-> *(ebp+0xc) 0/r32/eax f7 4/subop/multiply-into-edx-eax *(ebp+0x10) # TODO: check edx for overflow (allocate-array *(ebp+8) %eax *(ebp+0x14)) $allocate-array2:end: # . restore registers 5a/pop-to-edx 58/pop-to-eax # . epilogue 89/<- %esp 5/r32/ebp 5d/pop-to-ebp c3/return