title: Calculating Effective Address in Assembly
body: <p>I need to calculate each line's effective address. I know you shift DS to the left once and add the offset but I am confused when you changing the default data segment? For the first line do I just add ES+DI instead of using DS?</p>
  
  <p>Using these: <a href="http://i.imgur.com/H8C19dm.png" rel="nofollow">Register Numbers</a>
  An example of one that I know is right</p>
  
  <pre><code>IN    AL, 70H
  
  OUT  DX,  AX
  
  OUT    21H ,  AL
  </code></pre>