title: Reading memory from a given address - MIPS
body: <p>I'm new to MIPS so I'm confused about some things. My question is if I have a value entered when the program first compiles and that the value is an address (0x10010040) which is stored in a label. How do I access the address stored in the label and not the actual address of the label?</p>
  
  <pre><code>.data 
  input: 
  .asciiz 
  prompt: 
  .asciiz "Enter the address  " 
  prompt2:
  .asciiz "Filling some memory aaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbcccccccccccc
  
  
  .text                  
  .globl main  
  
  main:
  
  li $v0, 4
  la $a0, prompt
  syscall
  
  li $v0, 8 
  li $a1, 32
  la $a0, input
  syscall
  </code></pre>
  
  <p>Been stuck on this for way too long. I tried lw instead of la, fooled around a bit, and just got errors. Using the address 0x10010040 should point to 1650614882. But instead it just points to the address where input is at which is 0x1001000. I know it's because I'm loading the address of input instead of loading the value of input as an address, which is my question on how to do.</p>