Ciro Santilli
2019-08-24 00:00:04 +00:00
parent 3ab70cc459
commit c82f3cc2f9
2 changed files with 10 additions and 5 deletions

View File

@@ -54,7 +54,7 @@ bochs: $(RUN_FILE)
bochs -qf /dev/null \
'ata0-master: type=disk, path="$(RUN_FILE)", mode=flat, cylinders='"$$CYLINDERS"', heads=1, spt=1' \
'boot: disk' \
'display_library: sdl' \
'display_library: sdl2' \
'megs: 128'
BIG_IMG_DIR := big_img$(TMP_EXT)

View File

@@ -38,10 +38,15 @@ Run the default OS on QEMU:
Run a given OS:
....
./run min
./run bios_hello_world
./run bios_putc
....
Examples described at:
* <<bios-examples>>
* <<bios-hello-world>>
Extensions are ignored for perfect tab completion, so all the following are equivalent:
....
@@ -57,15 +62,15 @@ Use Bochs instead of QEMU:
./run bios_hello_world bochs
....
TODO broken on Ubuntu 19.04. Not sure I care: https://github.com/cirosantilli/x86-bare-metal-examples/issues/9
Then on the terminal start the simulation with:
....
c
....
https://stackoverflow.com/questions/6142925/how-can-i-use-bochs-to-run-assembly-code/32871939#32871939
TODO: automate this step.
Bibliography: https://stackoverflow.com/questions/6142925/how-can-i-use-bochs-to-run-assembly-code/32871939#32871939
=== Getting started with real hardware