Skip to content
/ PugOS Public

cs161-s18-psets-lcassels created by GitHub Classroom

Notifications You must be signed in to change notification settings

CS161/PugOS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b4438af · Mar 29, 2019
May 4, 2018
Apr 4, 2018
Mar 29, 2019
Mar 6, 2018
Mar 27, 2018
Apr 28, 2018
May 2, 2018
May 8, 2018
Sep 11, 2018
Mar 8, 2018
Jan 22, 2018
May 4, 2018
Mar 21, 2018
Apr 16, 2018
Sep 11, 2018
Mar 20, 2018
Mar 26, 2018
Apr 15, 2018
May 4, 2018
Mar 16, 2018
Apr 23, 2018
Apr 23, 2018
Apr 15, 2018
Apr 15, 2018
Apr 25, 2018
May 6, 2018
May 8, 2018
May 8, 2018
Mar 3, 2018
Apr 18, 2018
May 6, 2018
Apr 17, 2018
Apr 10, 2018
Mar 1, 2018
Feb 8, 2018
Mar 22, 2018
Mar 26, 2018
Mar 16, 2018
May 6, 2018
Apr 18, 2018
May 8, 2018
Apr 19, 2018
Mar 3, 2018
Apr 16, 2018
Apr 25, 2018
May 8, 2018
May 3, 2018
Mar 26, 2018
May 7, 2018
May 7, 2018
Mar 19, 2018
Mar 19, 2018
Apr 11, 2018
Mar 22, 2018
Apr 11, 2018
Mar 25, 2018
Mar 6, 2018
Feb 21, 2018
May 3, 2018
May 8, 2018
Apr 12, 2018
Apr 11, 2018
May 6, 2018
Apr 10, 2018
May 6, 2018
Apr 26, 2018
Apr 10, 2018
Apr 10, 2018
Apr 10, 2018
Mar 16, 2018
Mar 16, 2018
Apr 25, 2018
May 8, 2018
Apr 25, 2018
Apr 11, 2018
Mar 16, 2018
Apr 11, 2018
Apr 12, 2018
Apr 16, 2018
Apr 16, 2018
Apr 10, 2018
Mar 6, 2018
Apr 11, 2018
Mar 27, 2018
Mar 6, 2018
Mar 26, 2018
Mar 26, 2018

Repository files navigation

PugOS for DOOM

This is a modified version of Harvard's Operating Systems class teaching OS done by Lucas Cassels and Max Levenson as our final project for the course. See our DOOM repo for the DOOM port that runs on this OS!

Major OS additions:

  • Implemented numerous Linux syscalls needed by DOOM, such as alloca, various string manipulation functions, free, lseek, etc.
  • Added a compile-time switch (-GFX) for MMIO graphics interfacing via VGA mode 13h for a 320x200x8 screen
  • Added support for programming the graphics card's color palette via the I/O port
  • Created a system for de-activating debug messages by file and function (de-activated debug messages are compiled out of the executable) using macros and const functions
  • The stack will automatically grow when/if it runs out of allocated memory
  • Implemented real-time keyboard input for DOOM controls

Dependencies

  • QEMU
  • GCC
  • Linux (tested on Ubuntu)

Running DOOM

Make sure you have fetched the DOOM submodule source, then run:

make GFX=1 run-doom

This should build both the kernel and DOOM, link them, and run the game!