The age-old game of pong implemented in MIPS assembly. Please excuse our mess. It's a work in progress!
This is meant to be run in the MARS simulator. It uses both the Bitmap Dislay and the Keyboard and Display MIMO Simulator tools.
The MARS simulator had a bug a threading bug involving using multiple tools. A fix was published by the internet user Confect. We also used Confect's MIPS snake game as a learning source.
![Gif of Gameplay] (https://raw.githubusercontent.com/AndrewHamm/MIPS-Pong/master/GamePlay.gif)
- Open the Mars .jar file from our repo.
- Load the pong.asm file into Mars with File -> Open.
- Go to Run -> Assemble
- Go to tools -> Bitmap Display
- The Bitmap Display settings should be as follows:
- Unit Width: 8
- Unit Height: 8
- Display Width: 512
- Display Height: 256
- Base Address: $gp
- Go to tools -> Keyboard and Display MMIO Simulator
- Press connect to MIPS on both of the displays
- Go to Run -> Go
- All controls should take place in the lower portion of the Keyboard and Display Simulator
For 1 player press 1 For 2 player press 2
Player 1 moves using the A and Z keys. Player 2 moves using the K and M keys.