# Print hello COMP1521 in MIPS. # Written as a COMP1521 lecture example. .text main: li $v0, 4 # syscall 4: print_string la $a0, hello_msg # syscall # printf("Hello COMP1521!!\n"); li $v0, 0 jr $ra # return 0; .data hello_msg: .asciiz "Hello COMP1521!!\n"