Question: Write an Assembly language program titledYourLastName_Program1 that prints out Hello world, your name, the name of your favorite video game, the name of your favorite
Write an Assembly language program titled"YourLastName_Program1" that prints out "Hello world", your name, the name of your favorite video game, the name of your favorite film, and the name of your favorite song and the artist(s) who play it. Remember, this course will use the SPIM emulator for MIPS processors. Make sure your programs work on these emulated machines.
My current program below only prints out "Hello World" currently. My assignment is to print four other strings that refer to a video game, film, song, and the artist, each in a different line. No user input is needed; the program should just print the five strings when run, thanks!
# helloworld.s
#
# Print out "Hello World"
.data
msg: .asciiz "Hello World"
.extern foobar 4
.text
.globl main
main: li $v0, 4 # syscall 4 (print_str)
la $a0, msg # argument: string
syscall # print the string
lw $t1, foobar
jr $ra # retrun to caller
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
