You would like:
length( string1 ) + length( string2 ) =length( concat( string1, string2) )
If the null at the end of each string counted as part of its length, then this would be false, because the combined string has only one null (at the end) but there are two nulls in the two original strings.
There
are several ways to do what the second box of the chart
calls for: "point at the first character".
In a few chapters,
doing this will be much easier.
But, for now, remember that the
data section starts at the address 0x10000000
.
The top halfword of this is 0x1000
.
This is loaded into the top halfword of the
base register with
lui
A few more statements have been added to get and test the current character. Fill in the blanks.