Skip to content

A bootable real mode program that prints initial register contents

License

Notifications You must be signed in to change notification settings

donMerloni/dump

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dump

A bootable real mode program that prints initial register contents.

For what it's worth, also doubles as an example of how a simple bootable program might be achieved.

Example output

Example output

Requirements

  • nasm, to assemble nasm-flavored 16-bit x86 assembly
  • QEMU, if you want to test boot in a virtual machine
  • Rufus, if you want to boot from a real PC

How to build

Assemble the code with nasm:

nasm -f bin src/dump.asm build/dump.bin

or run build.bat

How to use

Method 1: Do a test boot with QEMU

qemu-system-i386 -drive file=build/dump.bin,format=raw -monitor stdio

or run test.bat

Method 2:

  1. Create a bootable USB or similar with Rufus

    Rufus example

  2. Reboot machine from said USB

About

A bootable real mode program that prints initial register contents

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published