This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/************************************************************************** | |
; Project: simon.c | |
; Author: Student, Fall2012 | |
; | |
; Description: A MSP430 assembly language program that plays the game of Simon. | |
; | |
; 1. Each round of the game starts by the LEDs flashing several times. | |
; 2. The colored LEDs (along with the associated tones) then flash one at | |
; a time in a random sequence. | |
; 3. The push button switches are sampled and compared with the original |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Beginning of our code | |
int beat_counter = 0; | |
int rand_array[] = 100; | |
bool fail = true; | |
setrandSeed(); | |
do { // loop for each round | |
rand_array[beat_counter] = rand16(); |