How do I get a register to store an offset value in at&t syntax?
<p>I am using this to write to the video memory (%es = 0xb800):</p>

<pre><code>movw $0x074b,%es:(0x0)
</code></pre>

<p>However, what if I want the offset to be in %ax?</p>

<p>I tried <code>%es:%ax</code>, or <code>%es:(%ax)</code>, but nothing worked, and I kept getting errors.</p>

<p>What am I doing wrong?</p>