TIP: Click on subject to list as thread! ANSI
echo: 80xxx
to: HUGH NOLAND
from: IAN MOOTE
date: 1997-02-13 11:15:00
subject: Data in code segment

-> I have already commented on this.  In a COM program, code, data,
-> stack must all reside in the same segment.
No, all segment registers are >initialized< to the same segment, but 
they can certainly be changed, and it is, in fact, often more convenient 
to do so rather than reserve uninitialized data space within your 
program. Don't confuse the shortcomings of a particular assembler / 
compiler with how the program actually runs when it hits the silicon.
Take care.
 ** BlahBlahBlahBlahBlahBlahBlahBlahandstillMOREBlah...
--- PCBoard (R) v15.3/M 5
---------------
* Origin: The GameBoard-905.689.3982/9409-Burlington-ON-CA (1:244/506)

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™.