Giter VIP home page Giter VIP logo

snake-assembly-mips's Introduction

text

snake-assembly-mips

Snake Game made in Assembly MIPS as a project from University of Brasilia

How to Play

  1. Clone this repository
  2. Execute Mars45_Custom5.jar
  3. On Mars, go to Settings -> Exception Handler and use SYSTEMv52.s
  4. Go to Tools and open Bitmap Display Simulator and Keyboard and Display MMIO Simulator, the formal to displaying the screen and the latter to simulate the user's input. Settings of the Bitmap Display Simulator are shown in the main.s header.
  5. Connect both tools to MIPS, assemble the current file and play it. Now all you need to do is to provide input using WASD to change the direction of the snake.

How to use bmp2bin.c

In case you intend to use your own images on MARS, using 1-byte per color in the Bitmap display.

Usage Instructions (Outdated):

  • Compile the source-code using (preferrably) "clang -O0 -std=c11 bmp2bin.c -o bmp2bin"
  • Save your image on Paint as a 256-color Bitmap file (aka 8-bit). This part is prefered to be done on Windows because I am not sure if different softwares use different headers for a 8-bit bitmap file.
  • Execute the program doing ./bmp2bin yourimage.bmp yourimage.bin
  • Now only the raw bitmap of your image is stored in the binary file, load it with syscalls and store it on the VGA memory as you want.

The newest version of the converter uses 24-bit bitmap files (instead of 8-bit), so the only difference is that you must have a 24-bit bitmap image, instead of a 8-bit one.

snake-assembly-mips's People

Contributors

mikaelmello avatar

Watchers

James Cloos avatar Shahid Aden avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.