Measures Concepts
GitHub icon

MIPS architecture

MIPS architecture - Instruction set architecture

< >

MIPS architecture is an instruction set architecture created in 1985.

#123on PLDB 39Years Old

Try now: Riju

MIPS is a reduced instruction set computer (RISC) instruction set architecture (ISA) developed by MIPS Technologies (formerly MIPS Computer Systems). The early MIPS architectures were 32-bit, with 64-bit versions added later. There are multiple versions of MIPS: including MIPS I, II, III, IV, and V; as well as five releases of MIPS32/64 (for 32- and 64-bit implementations, respectively). Read more on Wikipedia...


Example from Riju:
.text .global main main: li $v0, 5001 li $a0, 1 dla $a1, message li $a2, 14 syscall li $v0, 5058 li $a0, 0 syscall .data message: .string "Hello, world!\n"
Example from hello-world:
.data hello_world: .asciiz "Hello World" .text main: li $v0, 4 # Load syscommand print_string la $a0, hello_world # Load hello_world string into register $a0 syscall # Print the string jr $ra # Return
MIPS architecture Keywords
.data .text syscall trap add addu addi addiu and andi div divu mult multu nor or ori sll slv sra srav srl srlv sub subu xor xori lhi lho lhi llo slt slti sltu sltiu beq bgtz blez bne j jal jalr jr lb lbu lh lhu lw li la sb sh sw mfhi mflo mthi mtlo move

Language features

Feature Supported Token Example
Comments ✓
# A comment
MultiLine Comments ✓ ###
### A comment
###
Line Comments ✓ #
# A comment
Regular Expression Syntax Sugar ✓
Strings ✓ "

View source

- Build the next great programming language · Search · Add Language · Features · Creators · Resources · About · Blog · Acknowledgements · Queries · Stats · Sponsor · Day 605 · feedback@pldb.io · Logout