TIP: Click on subject to list as thread! ANSI
echo: 80xxx
to: NICK COONS
from: BRIAN MCCLOUD
date: 1997-03-16 12:08:00
subject: Extra Space.

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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.