TIP: Click on subject to list as thread! ANSI
echo: public_domain
to: Paul Edwards
from: rowan crowe
date: 1995-05-17 21:19:54
subject: data segment woes

Answering msg from Paul Edwards to All,
on Saturday May 13 1995 at 19:35

 PE> Hi folks.  I've been fighting Watcom C 10.0b 16-bit DOS to make
 PE> it compile MSGED.  I have been successful in converting
 PE> MSGAPI38 to DOS, and I am using that successfully for the
 PE> Borland version under DOS.  And MSGED is compiling perfectly,
 PE> and getting a certain distance in execution, and then failing.
 PE> I have been tracing it through to see what is happening, and
 PE> the ruddy thing is changing DS: on me!  It has actually generated
 PE> code that when calling a particular function, it changes DS.  And
 PE> when it does that, it stuffs up the assembler code, which has
 PE> some stuff in ".data" (not sure what that translates to, since
 PE> the watcom docs decided not to include grubby things like
 PE> assembler in them).  Anyone got any ideas?  BFN.  Paul.

    Why not set DS every time your ASM is called then?

hello proc far
  push   ds
  mov    ax, {at}data
  mov    ds, ax
  .....
  pop    ds
endp

    It's kludgy but then at least it will work under Watcom.

    BTW, congrats on having the endurance to trace through a HLL executable
of a couple of hundred K. ;-)

---
* Origin: Jelly-Bean software development. (3:635/727.1)
SEEN-BY: 50/99 632/348 998 633/371 634/384 635/502 503 513 544 727 638/100
SEEN-BY: 640/230 690/718 711/401 410 430 807 808 809 933 934 713/888 800/1
SEEN-BY: 7877/2809
@PATH: 635/727 632/348 635/503 50/99 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

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