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

Today Walkin 14th-Sept

Hibernate Search - Elasticsearch with JSON manipulation

Spring Elasticsearch Operations