In MIPS/MARS
1)Write a program that prints your name in a Triangle.
Solution :
Please find the answer below.
.data
prompt: .asciiz "*\n*****\n \n \n John Doe \n
\n******************\n"
.globl main
.text
main:
li $v0,4
la $a0,prompt #it will print prompt
syscall
Please refer to the screenshot for the output of the code..
I have tried to explain it in very simple language
and
I hope that i have answered your question satisfactorily.Leave
doubts in comment section if any.
Get Answers For Free
Most questions answered within 1 hours.