- Project Daydream -
[Function Abstract Revision 1.1]
PDGrfx.asm (Phil)
- DrawSplash
Inputs: None
Output: Draws a splash screen. Waits for a keypress to continue.
- DrawBackground
Inputs: None
Outputs: Draws the background screen. Called only once.
- DrawPlayer
Inputs: Pressed Direction (AL={N,E,S,W})
Output: Updates the screen's gameboard by highlighting the button passed as the argument.
- DrawWinScreen
Input: Score (AL={1,2,3})
Output: Shows the end screen and a message indicating how well you did. Prompts the user if they'd like to play again.
- Other internal functions. See Phil's Readme
Daydream.asm (Nathan)
- WaitForKey
Inputs: None
Output: Grabs input from keyboard. Clears buffer before input to discourage cheating.
- GetRandomMove
Inputs: None
Output: Gets a randomized computer move (N,E,S,W), and appends that onto the end of the computer's move sequence array. Generates random number from computer's system time.
- GetHumanMove
Inputs: None
Output: Gets the human's move from the keyboard arrow keys. Requires two calls to interrupt to obtain scankey value.
- GameDelay
Inputs: None
Output: Waits for a time specified in the constants section (Delay_Game_Out * Delay_Game_In clock cycles).
PDTones.asm (Dustin)
- PlayTone
Inputs: Tone (AL={N,E,S,W})
Output: Plays a tone through the PC speaker corresponding the player's move.
- ToneDelay
Input: None
Output: Waits for a time specified in the constants section (Delay_Tone_Out * Delay_Tone_In clock cycles).
PDScroll.asm (Dustin)
- Credits
Input: None
Output: Displays credits on the screen in text mode video.
- bsod
Input: None
Output: Shows our good friend, the microsoft blue screen of death.
- Scroll
Input: None
Output: Scrolls the contents of the text mode video.
- ScrollDelay
Input: None
Output: Waits for a time specified in the constants section (Delay_Scroll_Out * Delay_Scroll_In clock cycles).
Back to Main