Dove6 / RGB-triangle-generator-MIPS

Assembly triangle drawing tool (MIPS-32 edition)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RGB triangle generator (MIPS-32)

Mini-project for exploring MIPS assembly language.

The program draws a colorful triangle on white RGB24 pixelmap and saves it to file.
Pixelmap dimensions, output file name and triangle's color and position are hardcoded in the first 16 lines of rgb_triangle.asm ("USER-DEFINED SYMBOLS" section).
Barycentric coordinate system is used in order to determine boundaries of the triangle and correctly mix colors. You can read more about this method here.

The proper output image is presented below:
The proper output image

The project was carried out as an assignment for CPU architecture-related subject.
Make sure to check out its other incarnations: x86/C version, x86-64/C version.

Running

The code is to be run using MARS 4.5 MIPS assembler and simulator.

About

Assembly triangle drawing tool (MIPS-32 edition)

License:MIT License


Languages

Language:Assembly 100.0%