Skip to content

Latest commit

 

History

History

examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Example Programs

This demo shows how to cross-compile a 32-bit DOS program.

Requirements

  • C build tools for ELF binaries, including a C compiler, assembler, linker, and Make. Tested with GNU ld and GCC 8.3. Clang should work, but the build scripts may require some modification.

  • Go 1.11 or higher to build Elf2Dos (modules support required).

  • DOSBox.

  • DOS/32 Advanced: Copy sb.exe and dos32a.exe to this directory.

Building

To build hello.exe,

make

To run hello.exe inside DOSBox,

make run