Languages Features Calendar CSV Lists Blog About Sponsor Add Language
GitHub icon

MIPS architecture

MIPS architecture

MIPS architecture is an isa created in 1985.

#116on PLDB 37Years Old 5.1kUsers
0Books 0Papers

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

Keywords in MIPS architecture

.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 Example Token
# A comment
MultiLine Comments
### A comment
Line Comments
# A comment
Regular Expression Syntax Sugar
Strings "
rexx.html · mips.html · sqlite.html

View source

PLDB - Build the next great programming language · v2022 · Day 33 · Docs · Build · Acknowledgements · Traffic Today · Traffic Trends · Mirrors · GitHub ·