Skip to content

Commit

Permalink
Added QEMU notes by SuperMaxusa
Browse files Browse the repository at this point in the history
  • Loading branch information
nanochess committed Jul 14, 2024
1 parent 86db9ff commit 1ce2a21
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,19 @@ Use this command line:
nasm -f bin ray.asm -Dcom_file=1 -o ray.com
nasm -f bin ray.asm -Dcom_file=0 -o ray.img

Tested with VirtualBox for macOS running Windows XP and also executing directly the bootsector. It probably works with QEMU:
Tested with VirtualBox for macOS running Windows XP and also executing directly the bootsector. For QEMU, recommended run with KVM (Linux) or Hyper-V (Windows) accelerator for better performance:

qemu-system-x86_64 -fda ray.img
Run with KVM:

qemu-system-x86_64 -machine accel=kvm ray.img

Run with Hyper-V:

qemu-system-x86_64 -machine accel=whpx ray.img

Run without accelerator (TCG):

qemu-system-x86_64 ray.img

Because DOSBox-X runs very slowly, I further tested with VirtualBox over Windows 11 (Asus TUF F17), created a Windows XP 32-bit machine (you don't need to install Windows nor a hard disk image), in Configuration/Storage in the bottom there is a icon saying "Add controller", choose I82078 (floppy), then click "Add floppy drive", and select the boot sector as image (ray.img).

Expand All @@ -43,6 +53,8 @@ Thanks to Peter Ferrie for helping me to save 23 bytes (my original program was

Thanks to birdie-github for contributing the animated GIF of the ray tracer.

Thanks to SuperMaxusa for contributing the Qemu acceleration notes.

## More on this?

Do you want to learn 8086/8088 assembler? Get my books Programming Boot Sector Games containing an 8086/8088 crash course! Also available More Boot Sector Games. Now available from Lulu and Amazon!

0 comments on commit 1ce2a21

Please sign in to comment.