Question

In MIPS/MARS 1)Write a program that prints your name in a Triangle.

In MIPS/MARS

1)Write a program that prints your name in a Triangle.

Homework Answers

Answer #1

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.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
In MIPS / MARS Be able to input to display your name and show how many...
In MIPS / MARS Be able to input to display your name and show how many hours you worked this week, hourly wage. Example: Please enter your name: John Doe You entered: John Doe Please enter number of hours worked: 40 You entered: 40 Please enter your hourly wage: $15 You entered: $15 Your paycheck is $600 for the week.
Write an assembly language program that prints your full name on the screen. Use .ASII pseudo-op...
Write an assembly language program that prints your full name on the screen. Use .ASII pseudo-op to store the characters at the top of your program Use BR to branch around the characters and use STRO to output your name. Comment each line except STOP and .END. Cut and paste the Assembler Listing into your document Paste a screen shot of the Output area of the Pep8 program Please use the name "Levin Fi" Assembler Listing Screen Shot of the...
Prompt: Write a code in MARS MIPS that uses a stack to recursively compute the series...
Prompt: Write a code in MARS MIPS that uses a stack to recursively compute the series from 1 to 10.
Write a program that asks the user to enter an odd number and prints out a...
Write a program that asks the user to enter an odd number and prints out a triangle pattern. For example, if the user enters 5, the output is note: There is one space between the numbers in each line 1 3 5 1 3 1 If the user enters 9 the output is: 1 3 5 7 9 1 3 5 7 1 3 5 1 3 1 program language: C++
Write spim program and execute it on mars. Your program reads two integer values x and...
Write spim program and execute it on mars. Your program reads two integer values x and y. Write a function called sum that gets x and y passed as parameters and return the sum of odd values between x and y inclusive. In addition write another function called even that gets x and y as parameters and returns the count of all even numbers between x and y inclusive. Also in main print the quotient and remainder of diving y...
- Write a python program which prints all the numbers between 1 and 100 that are...
- Write a python program which prints all the numbers between 1 and 100 that are divisible by 3.
Without using move or li, write MIPS assembly language using MARS simulator to print a half...
Without using move or li, write MIPS assembly language using MARS simulator to print a half pyramid depending on a value n of a user input. Such that if n = 5 were entered the following would be printed: 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5
In C++ Please, Write a program that (1) prompts for two integers, (2) prints out their...
In C++ Please, Write a program that (1) prompts for two integers, (2) prints out their sum, (3) prints out the first divided by the second, and (4) prints out the natural log of the first number raised to the power of the second number. #include <iostream> #include <iomanip> using namespace std; int main() { <your answer goes here> return 0; }
Write a MIPS program to check if computer is a big-endian or little-endian system
Write a MIPS program to check if computer is a big-endian or little-endian system
Write a C program that prints 1 if there is an exact change using nickels (5...
Write a C program that prints 1 if there is an exact change using nickels (5 cents), dimes (10 cents), quarters (25 cents), loonies ($1), toonies ($2) and bills and 0 if there is none. For example, if the change is $7.25 it prints 1 because, the change would be 7 loonies($1), two dimes and a nickel.  
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT