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).
I ASSUMEd the segments as following: assume cs:code, ds:data, ds:dat2, ss:stac
. Before each usage of a variable in any of the data segments, I wrote:
mov ax, data (or dat2)
mov ds, ax
Now, when I try to compile, I get the following error for each line in which I use a variable:
**Error** source.ASM(232) Can't address with currently ASSUMEd segment registers
Also, I noticed the error only happening when I refer to the variable directly. When I write mov ax, example
I get an error, yet when I write mov ax, offset example
I don't get the error.
Is there a way to solve this? Or, even better, not use two data segments?
Thanks!