home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / os2 / programm / 7053 < prev    next >
Encoding:
Text File  |  1992-12-16  |  1.3 KB  |  29 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!mcsun!news.funet.fi!aton.abo.fi!usenet
  3. From: PNIELSEN@FINABO.ABO.FI (Peter Nielsen Inf)
  4. Subject: Re: 32-bit programming using MASM 6.00b
  5. In-Reply-To: jawetzel@athena.mit.edu's message of Mon, 14 Dec 1992 13:18:17 GMT
  6. Message-ID: <1992Dec16.112731.12449@abo.fi>
  7. Sender: usenet@abo.fi (Usenet NEWS)
  8. Organization: Abo Akademi University, Finland
  9. References:  <1992Dec14.131817.14808@athena.mit.edu>
  10. Date: Wed, 16 Dec 1992 11:27:31 GMT
  11. X-News-Reader: VMS NEWS 1.24
  12. Lines: 15
  13.  
  14. In <1992Dec14.131817.14808@athena.mit.edu> jawetzel@athena.mit.edu writes:
  15. > Is there anyone out there who has experience assembling 32-bit OS/2 v2.0
  16. > programs using Microsoft's MASM 6.00b.  I thought that I could use the 
  17. > flat memory model but LINK386 chokes on the object code.  LINK386 does not
  18. > complain if I use the normal segmented model but the EXE created generates
  19. > a 000E trap. 
  20.  
  21. Write a simple C-program and compile with generate assembly (icc /Fa)
  22. This gives you an excellent example on how to declare the CODE and DATA
  23. 'segments'... (Don't use the simplified .DATA and .CODE they will get you
  24. into a whole lot of trouble... like Oh yeah my progam works.... - NOT!)
  25. I have been using C SET/2 and MASM 6.00 with the flat model without problems...
  26.  
  27. Peter Nielsen
  28. pnielsen@finabo.abo.fi
  29.