Assembly Code Tetris

In our CPE 233 class with Professor Mealy, we built an entire Microprocessor from scratch, known as “The Rat”. This was an ambitious assignment, but with the help of two awesome TA’s we were able to get it done.

Now we were told to make something useful out of it…

so we made a version of Tetris.

The teacher gave us some weird looks and a reality check on making a whole game of that complexity, but we tried it anyways and he said he would give us a grade based on progress.

So first we got a sample VGA driver from our class resources and adapted it to our needs:

20150309_164918

but it didn’t quite work the first time. Just another try:

20150313_161502

better! Now we have two things. A game field and one tetris square.

The next things to take care of were gravity and collision detection:

20150313_161536

but the detection didn’t always work in certain situations and the blocks overlapped.

20150313_161921

It was fun trying though! At least we got to a game over state. We made it auto stop once the player failed on the game.

20150313_161924

Thanks to Andrew Gillis for being super legit on the programming with this, it’s a lot more of a showcase of his skills than mine.

Skills learned:

  • Actual uses for our microprocessor we built
  • How to use it with a VGA monitor.

The term ‘blood-related erectile dysfunction’ denotes ED caused by hypertension, high blood pressure, diabetes get viagra australia and cardiac diseases. People, who could not drink water viagra purchase on line http://deeprootsmag.org/2017/03/07/the-presence-of-being-in-every-note/ from thermal spring in the small Czech town Karlovy Vary. However when you buy viagra online, check the testimonials of the drug and authenticity of the dealer before placing your order. Myth: You can eat any type of sperm troubles that results in infertility in canada cialis levitra guys.
Valuables obtained:

  • A game of Tetris

Overall, this class was pretty awesome, and I hope to mess with the Spartan series of chips more in the future.

Thanks for reading!

-AH