Iterating through and modifying a string in MIPS
问题 I'm trying to write a method to do a caesar shift on a string of text in the MIPS assembly language. My encryption method is as follows: encryptMessage: la $s0, message #s0 will hold message that will be iterated through lw $t1, key #s1 will hold the key to shift by li $t0, 0 #t0 will be iterator, starting at 0 encryptionLoop: add $s1, $s0, $t0 #$s1 = message[i] lb $s2, 0($s1) #Loading char to shift into $s2 beq $s2, $zero, exit #Breaking the loop if we've reached the end: http:/