title: Implement in MIPS assembler the check if a given fiscal code is correct
body: <p>Well I have one Assignment to do Its like this: Implement in MIPS assembler the check if a given italian fiscal code is correct. The check should recalculate the "check letter" at the end of the fiscal code and compare it with the code that is present.</p>
  
  <p>When you write it in assembler, there are some tricky things to consider:
   - How do you store an Array in MIPS assembly?
   - How can you ask for user input? (Hint: use a syscall, you will find a lot of examples on the web how to do it)
   - How can you iterate through the array character by character?
   - How can you calculate the right sums?
   - How can you compare the result with the given letter?<br>
  What I have tried so far is just taking input and printing, no clue how to do the rest.</p>
  
  <pre><code>.data 
         Array1:  .ascii   "Kynmmm91s11z236p"
          Array2: .space 16 
              Promt: .asciiz "Enter the fiscal code:\n"  
              Line: .asciiz "\n"
  
  .text
  
  main:
  
      la $a0,Promt    
      la $t2,Array1
      li $v0,4   # prints what ever is in prompt with syscall
      syscall
  
      move $a0,$t2
      li $v0,4   # prints what ever is in prompt with syscall
      syscall
  
     la $a0,Array2    
     li $a1,20   
      li $v0,8    
     syscall
  
      la $t0,Array2  # BASE ADDRESS OF ARRAY   
      li $t1,4    
      lw $a0,0($t0) #***MOVED THIS OUT***     
      Loop:
          add $t0,$t0,$t1         
              beq $a0,0, Exit         
              la $a0, Array2       
              li $v0,4        
              syscall         
  
              li $a0, 0  #****ADDED THIS LINE****         
              j Loop
  
      Exit:
          li $v0,10   
              syscall
  
             # ***Kynmmm91s11z236p***
  </code></pre>