MIPS Assembly

How Can I print 2 more string on this code:

la $a0, hello_msg
        li $v0, 4

Why I cannot do it like this: !!! Loading the address into 3 differant addresses and then Calling the print_string()??? Please explain clearly....

la $a0, hello_msg1
la $a1, hello_msg2
la $a2, hello_msg3

        li $v0, 4
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Kyle HamiltonData ScientistCommented:
im not an expert by any means, but assembly doesnt have highlevel functions like print_string(). are you writing this in C and compiling to assembly?

i probably cant help you, but i hope you dont mind if i tag along on this question.
Because print_string accept only one argument in $a0 and not in $a1, $a2

Kyle HamiltonData ScientistCommented:
haha, I thought you were referring to an an actual MIPS microprocessor. But you're talking about a language called MIPS, which by the way, is not assembly, but more like C.

Price Your IT Services for Profit

Managed service contracts are great - when they're making you money. Yes, you’re getting paid monthly, but is it actually profitable? Learn to calculate your hourly overhead burden so you can master your IT services pricing strategy.


Did you never call an OS function with assembly? ;-)
Kyle HamiltonData ScientistCommented:
no... that's why I was confused, and wanted to see the outcome of this question.

I did a little assembly using just a small instruction set on the PIC16 microcontroller to make an LED matrix display some messages, but that's the extent of my experience - doh! :)


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
pauledwardianAuthor Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.