title: Combine Two Strings to one address in MIPS Assembly
body: <p>I have a MIPS program I am writing, in which the user types in their first name, then last name, and then the system prints out their full name.</p>
  
  <p>I store both names in seperate registers, but I need to combine them to one before I print the full name out. </p>
  
  <p>Any help would be appreciated. Code is below:</p>
  
  <pre><code>.data
  first:.asciiz "Please enter your first name: \n"
  last:.asciiz "Please enter your last name: \n"
  full:.asciiz "Your full name is: "
  .text 
  main:
  #    First Name
  li $v0, 4              # 4 prints a line
  la $a0, first          # Print first name 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 name is now in $t1
  
  #   Last Name
  li $v0, 4              # 4 prints a line
  la $a0, last           # Print last name text
  syscall                # Syscall
  
  li $v0, 8              # 8 will read string
  syscall                # calls the word
  sw $v0, last
  move $v0, $t2          # The name is now in $t2
  
  #    Full Name
  li $v0, 4              # 4 prints a line
  la $a0, full           # Print full name text
  syscall  
  
      # Combine first and last name below
  </code></pre>