title: How do you store data in the memory without using a variable within Assembly (NASM)?
body: <p>I have search every webpage for an answer but I cant seem to find it. I have been learning the net-wide assembly syntax for around 2 months, and I'm trying to find a way to store data in the memory. </p>
  
  <p>I know that sys_break:</p>
  
  <pre><code>    mov,eax 45
  </code></pre>
  
  <p>reserves memory, and I have a functional macro which reserves 16kb of memory:</p>
  
  <pre><code>    %macro reserve_mem
      mov eax,45
      xor ebx,ebx
      int 80h
      add eax,16384
      mov ebx,eax
      mov eax,45
      int 80h
      %endmacro
  </code></pre>
  
  <p>I also know that when you reserve bytes (resb), words ect. in the .bss section, small parts of memory are allocated to that uninitialised data.</p>
  
  <p>In addition, there is virtual memory which can be accessed with an address like 0x0000, and this is then mapped into its actual memory location.</p>
  
  <p>However, my problem is that I am trying to store data in the memory, but everything I try ends in a segmentation fault(core dumped) which is the programm trying to access memory it doesn't have access to. I have tried code such as below. </p>
  
  <pre><code>     mov [0x0000],eax
  </code></pre>
  
  <p>Thankyou for the help.</p>