MIPS architecture is an instruction set architecture created in 1985.
#249on PLDB | 39Years Old |
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...
.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"
.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
.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
Feature | Supported | Example | Token |
---|---|---|---|
Comments | ✓ | # A comment | |
MultiLine Comments | ✓ | ### A comment ### | ### |
Line Comments | ✓ | # A comment | # |
Regular Expression Syntax Sugar | ✓ | ||
Strings | ✓ | " |