-1

I'm having issues grasping the concept of string and characters in MIPS. If I'm trying to loop through two strings, and concatenate two characters at a time, how would I do this?

Lets say I have

String1 = "St"
String2 = "ack"

How could I loop through to get

Sa, Sc, Sk, ta, tc, tk 

Thanks in advance!

Parker
  • 8,539
  • 10
  • 69
  • 98

2 Answers2

0

the most easy way to do this:

1)write the program with C.

2)compile it with GCC with flags "-S", and use "> xx.S" to store the assembly code to a file.

3)extract the assembly codes from "xx.S".

wuxb
  • 2,572
  • 1
  • 21
  • 30
-1

Wasn't able to figure it out, the MIPS environment I used had something built in apparently.

Parker
  • 8,539
  • 10
  • 69
  • 98