MIPS Assembly Data Types

Before moving towards coding is necessary to learn the basics of MIPS assembly language. Data type is one of the most important part to learn.

Data types that mips assembly support are given below in detail.


.ASCII is used to store string type data. An Ascii data type donot have a NULL terminator. i.e  ‘\0’ , called NUL in ASCII)


.ASCIIZ is used to store store string data but it has a Z at end which means it has a null terminator. Z is Ascii code for null terminator.


Byte (4 Bits) data type is used for single integers without any decimal places. It can also be used to store character. See the example Below:


A Halfword consists of two bytes. It is used to store half of a word. Each four bit is at address divisible by 2. See Example:


In .word data is stored in the form of 32 Bits. Its double of half word. It can also be used to initialize an Array. You can also use positive or negative sign as its 32 bit. See Example:


Float data type is used to store floating point value with single decimal value. see example:


Double data type is used to store double value with more than one decimal places. See Example:

Data Types And Size in Mips Assembly

Data TypeSize
Halfword16 bits
Word32 bits
Byte8 bits
Integer32 bits
Character4 bits


If there are any questions ask freely in the comment box.

Nauman Rehmat

Nauman Rehmat is the owner of Assembly Language Tuts.He is interested in Programming and SEO. He is also pursuing a degree in Computer Software Engineering from Comsats.