Giter Site home page Giter Site logo

s22-os-p1's Introduction

/**

@mainpage 15-410 Project 1

@author Di Hu ([email protected])

- Link: https://www.cs.cmu.edu/~410/p1/proj1.html

The main task for P1 is to develop a game called Adventure

The Game part is already given, the rest of the task is to 
develop keyboard, timer and console drivers

1. Console
 - the console display is controlled by a region of memory through MMIO
 - the cursor is controlled by CRTC through IO ports

2. Timer
 - the timer is interrupt driven, communicated through IO ports
 - for this task, the timer is configured to fire an interrupt every 10 milliseconds

3. Keyboard
 - the keyboard is also interrupt driven through IO ports
 - on the keyboard interrupt, a one-byte scan code will be read from keyboard port
   and stored in a ring buffer defined in `keyboard.c`. 
   - the ring buffer has two indexes, the read index `rd_index` and write index `wr_index`
     when there is no data in the buffer, rd_index == wr_index
   - the indexes always increment. When they reach the end of the buffer, it is reset to 0

*/

s22-os-p1's People

Contributors

okesity avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.