Is it possible to make writeable variables in .text segment using DB directive in NASM?
<p>I've tried declaring variables in <code>.text</code> segment using e.g. <code>file_handle: dd 0</code>.</p>

<p>However, trying to store something in this variable like <code>mov [file_handle], eax</code> results in a write error.</p>

<p>I know, I could declare writeable variables in the <code>.data</code> segment, but to make the code more compact I'd like to try it as above.</p>

<p>Is the only possibility to use the stack for storing these value (e.g. the file handle), or could I somehow write to my variable above?</p>