NC>Hi All!
NC> I am trying to write a small subroutine for use with QuickBASIC
hat
NC>will allow you to use the color text segment, B800h, for data storage when
NC>working in graphics mode. It allows you to copy to and from arrays in
blocks
NC>of 1k. CopyTo is to copy data to B800h, and CopyFrom is its compliment.
NC>Here's what I have so far:
NC> On the line where I have:
NC> mov [es:bx], [di]
NC> ...and
NC> mov [es:di], [bx]
NC> ...it says that I cannot use the segment override. Is there a way
NC>around that?
first of all, if you're using MASM or a compatible assembler, the correct way
of doing a segment override is like this:
mov es:[di], [bx]
second of all, why aren't you doing these as REP MOVSW instructions?
((Cloud))
* OLX 2.2 * It's great to do nothing and rest afterwards.
--- PCBoard (R) v15.3/M 10
---------------
* Origin: Next time, Dial The Wrong Number! (209) 943-1880 (1:208/205)
|