Skip to content

Simple DOS COM game template with timer and keyboard interrupts.

License

Notifications You must be signed in to change notification settings

aarni57/dostemplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple DOS COM game template with timer and keyboard interrupts

screenshot

Run makecom.bat in DOS to build main.com. Target CPU is set to 8086. The batch file can be easily changed to build a real mode EXE.

The main loop in main.c looks like this:

while (!quit) {
    update_time();
    update_input();

    // TODO: Do game logic and simulation here

    vga_vsync();

    // TODO: Draw here

    print_time_and_fps();
}

Tools needed:

Useful:

About

Simple DOS COM game template with timer and keyboard interrupts.

Resources

License

Stars

Watchers

Forks