title: MIPS- How to add one string to another
body: <p>I need to write a procedure in MIPS that will find the length of two input string arguments. After that the procedure needs to add the shorter string to the bigger one,calculate its length and  print the whole string. Then write a main function that will test procedure so that you complete the processes: input strings from the keyboard, calling the procedure and print the length of the new array screen. </p>
  
  <p>I store both names in separate registers, but I need to combine them to one before I print the full name out.
  code:</p>
  
  <pre>
      .data
  first:.asciiz "First string: \n"
  last:.asciiz "Second string: \n"
  full:.asciiz "Full string: "
  .text 
  main:
  #    first string
  li $v0, 4              # 4 prints a line
  la $a0, first          # Print first string text
  syscall                # Syscall
  
  add $a1, $a1, 254      # Setting String length 
  li $v0, 8              # 8 will read string
  syscall                # calls the word
  sw $v0, first
  move $v0, $t1          # The string is now in $t1
  
  #   second string
  li $v0, 4              # 4 prints a line
  la $a0, last           # Print second string text
  syscall                # Syscall
  
  li $v0, 8              # 8 will read string
  syscall                # calls the word
  sw $v0, last
  move $v0, $t2          # The string is now in $t2
  
  #    Full string
  li $v0, 4              # 4 prints a line
  la $a0, full           # Print the whole text
  syscall  
  </pre>