An implementation of Tetris in Assembly MIPS using infra red controller.
$s7 is used to save initial $sp position across all execution of the game, this register should never be used with another purpose
Memory address: ($sp - offset)
-
Number of players
- Type: int
- Size: 4 bytes
- Offset: 000 - 004
-
Registered keys of controller
- Type: IrDA Type
- Size: 64 bytes
- Offset: 004 - 068
-
Board positions
- Type: int
- Size: 16 bytes
- Offset 068 - 084
-
Board matrices
- Type: matrix
- Size: 1000 bytes X number of players
- Offset 084 - 1084 X number of players
-
Score
- Type: int
- Size: 16 bytes
- Offset: 5000 - 5016