Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 753 Bytes

README.md

File metadata and controls

36 lines (27 loc) · 753 Bytes

Tetris Assembly MIPS

An implementation of Tetris in Assembly MIPS using infra red controller.

Register used

$s7 is used to save initial $sp position across all execution of the game, this register should never be used with another purpose

Memory positions used

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