I am trying to learn to get a better understanding with assembler
Could someone explain what .data, .word and .text means does in the following code??
I don't get what this is for and what it does in this case
.data
array:
.word 0x12121212, 0x23232323, 0x34343434, 0x4, 0x5
.text
add_array:
li x1, 0x10000000
add x3, x0, x0
lw x2, 0(x1)
add x3, x3, x2
lw x2, 4(x1)
add x3, x3, x2
lw x2, 8(x1)
add x3, x3, x2
lw x2, 12(x1)
add x3, x3, x2
lw x2, 16(x1)
add x3, x3, x2