title: Working with two data segments in TASM
body: <p>I want to work with two data segments in my TASM program. I know, it sucks, but I have to have two pretty big arrays, each one FFFFh in size (and I wish I could have them bigger).</p>
  
  <p>I ASSUMEd the segments as following: <code>assume cs:code, ds:data, ds:dat2, ss:stac</code>. Before each usage of a variable in any of the data segments, I wrote:</p>
  
  <pre><code>mov ax, data (or dat2)
  mov ds, ax
  </code></pre>
  
  <p>Now, when I try to compile, I get the following error for each line in which I use a variable:</p>
  
  <pre><code>**Error** source.ASM(232) Can't address with currently ASSUMEd segment registers
  </code></pre>
  
  <p>Also, I noticed the error only happening when I refer to the variable directly. When I write <code>mov ax, example</code> I get an error, yet when I write <code>mov ax, offset example</code> I don't get the error.</p>
  
  <p>Is there a way to solve this? Or, even better, not use two data segments?</p>
  
  <p>Thanks!</p>