In MIPS 32 Assembly, why is "la" used to print strings but "lw" used to print integers?

Just want to know the logic behind this. Why is la used for strings and lw used for integers? For example:

.data

age:   .word 30

.text
li $v0, 1
lw $a0, age
syscall

vs

.data

name:   .asciiz "Joe"

.text
li $v0, 4
la $a0, name
syscall


from Recent Questions - Stack Overflow https://ift.tt/2PEuDiu
https://ift.tt/eA8V8J

Comments

Popular posts from this blog

I get wrong characters when retreiving the message body of an email using TIdIMAP4.UIDRetrieveTextPeek2()

How to drop the all the 1's in a correlation matrix

Today Walkin 14th-Sept