about summary refs log tree commit diff stats
path: root/bochsrc
blob: e31b1718fcc61940d8a22beab14820602ceda42e (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  # 512 bytes per sector = almost 10MB
boot: disk
mouse: enabled=1, toggle=ctrl+f10
log: -
lass="c1"># coding=utf-8 # ranger: Browse your files inside the terminal. # ----------------------------------------------------------------------------- # An embedded shell script. It allows you to change the directory # of the parent shell to the last visited directory in ranger after exit. # For more information, check out doc/cd-after-exit.txt # To enable this, start ranger with: # source /path/ranger /path/ranger """": if [ $1 ]; then RANGER="$1" shift cd "`$RANGER --cd-after-exit \"$@\" 3>&1 1>&2 2>&3 3>&-`" else echo "usage: source path/to/ranger.py path/to/ranger.py" fi return 1 """ # Redefine the docstring, since the previous one was hijacked to # embed a shellscript. __doc__ = """Ranger - file browser for the unix terminal""" # Importing the main method may fail if the ranger directory # is neither in the same directory as this file, nor in one of # pythons global import paths. try: from ranger import main except ImportError as errormessage: if str(errormessage).endswith("main"): print("Can't import the main module.") print("To run an uninstalled copy of ranger,") print("launch ranger.py in the top directory.") else: raise else: main()