Skip to content

ifilot/dos-8086-assembly-demos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DOS 8086 Assembly Demos

This repository contains a collection of very small and simple 8086 assembly programs for MS-DOS type of computers. These programs perform a single task which would normally be embedded into a larger program.

Overview

  • helloworld: Prints "Hello World!" to the screen
  • printdot: Enters VGA mode and prints all VGA colors in a 16 x 16 grid
  • fileio: Open a file and read its contents which is shown on the terminal screen
  • image: Load an image file and show it on the screen
  • crc16: Perform a CRC16 on a small snippet of data
  • savefile: Save a snippet of data to a file

Screenshots

Screen shot of printdot program:

Screenshot of printdot program

Screen shot of image program:

Screenshot of image program

Requirements

Install the required emulator and cross-compiler / assembler via the instruction below.

sudo apt install -y dosbox bcc nasm build-essential

Compiling and running

To compile and run any of the examples, go the respective folder and run

make && make run

Scripts

The folder vga-palette contains a simple Python script to convert .png files (24 bpp) to the VGA palette (8 bpp).

About

Set of simple demos for DOS written in 8086 assembly

Topics

Resources

License

Stars

Watchers

Forks