Working with MIPS Floating Point Architecture using PCSPIM

MIPS floating pointing architecture using pcspim

Until now, we have only covered integer computations in PCSPIM in our previous tutorials. However, in reality, computations also involve floating-point arithmetic. For this purpose, MIPS supports various floating-point instructions along with 32 special floating-point registers, $f0 to $f31. Below are some interesting facts about floating-point organization and floating-point programming in MIPS architecture. Understanding these … Read more

Recursion and Sorting in MIPS Assembly Language

MIPS system calls table

Recursion occurs when a function/procedure calls itself. In this article, we will explore how to calculate the factorial of a number using recursion in MIPS assembly language. Recommended Books Books that cover this topic in more depth. Book Why read it Buy on Amazon Computer Organization and Design, MIPS Edition (Patterson & Hennessy) The classic … Read more

Integer Multiplication and Division in MIPS Assembly Language

Division of numbers in MIPS

In the MIPS Assembly Language, we can perform integer multiplication and division using the mult, multu, div, and divu instructions. These instructions belong to the Arithmetic Core Instruction Set and are used for signed and unsigned integers respectively. The results of these operations are stored in special registers called HI and LO. In this article, … Read more

PCSPIM: MIPS Control Instructions and working with Arrays

MIPS control instructions

In this article, we will understand MIPS control instructions by examples. MIPS control instructions are a fundamental aspect of programming in MIPS assembly language. They allow you to control the flow of your program, make decisions, and loop through code based on conditions. Recommended Books Books that cover this topic in more depth. Book Why … Read more

PCSpim Tutorial : Getting Started with MIPS Instructions Set Simulator

pcspim tutorial for mips instructions simulator

PCSpim is a freely available personal computer simulator for MIPS. It simulates the behavior of a MIPS processor on an Intel-based machine. SPIM was originally developed by Dr. James Larus at the University of Wisconsin, Madison, around 20 years ago. You can download it from the University of Wisconsin, Madison website: http://www.cs.wisc.edu/~larus/SPIM/pcspim.zip. Using this simulator, … Read more