home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / os2 / programm / 7534 < prev    next >
Encoding:
Internet Message Format  |  1993-01-12  |  2.3 KB

  1. Path: sparky!uunet!caen!uwm.edu!csd4.csd.uwm.edu!tanith
  2. From: tanith@csd4.csd.uwm.edu (Michael D Kretzer)
  3. Newsgroups: comp.os.os2.programmer
  4. Subject: Re: MASM and `model os_os2'
  5. Date: 12 Jan 1993 23:10:11 GMT
  6. Organization: University of Wisconsin - Milwaukee
  7. Lines: 35
  8. Message-ID: <1ivj4jINNd3k@uwm.edu>
  9. References: <1993Jan12.170532.17948@olymp.informatik.uni-bonn.de>
  10. Reply-To: tanith@csd4.csd.uwm.edu
  11. NNTP-Posting-Host: 129.89.7.4
  12. Originator: tanith@csd4.csd.uwm.edu
  13.  
  14. From article <1993Jan12.170532.17948@olymp.informatik.uni-bonn.de>, by greve@rs1.thch.uni-bonn.de (Thomas Greve):
  15. > After i found out that my masm 5.1 also has an OS/2 version, i tried
  16. > to assemble some of the asm-samples of the toolkit, but masm choked on
  17. > `model large,os_os2'. The `large' is not unusual, but the `os_os2'
  18. > obviously is unknown to it. What does it mean (well, i can imagine it
  19. > halfway), and what happens if i leave it out?
  20.  
  21. The OS_OS2 parameter to the .MODEL simplified segment directive instruction
  22. indicates how .STARTUP and .EXIT behave.  If you don't use .STARTUP and
  23. .EXIT, then OS_OS2 is not necessary.  .STARTUP and .EXIT are the macros
  24. for startup and exit code respectively (DOS requires a program to set up
  25. the DS and SS registers to point to its data and stack areas...OS/2 does
  26. this for you automatically).
  27.  
  28. If you are compiling the device driver samples, you can delete os_os2
  29. with no ill effects...,the .STARTUP and .EXIT macros are not used in
  30. the code at all.
  31.  
  32. The OS_OS2 parameter to .MODEL was added with MASM 6.0.  The assembly
  33. examples in the toolkit compile under MASM 6.0 with no modifications.
  34.  
  35. > Is masm 5.1 seriously useable for OS/2 2.0?
  36.  
  37. Yes, although I would suggest upgrading to MASM 6.0, because it adds
  38. the ability to create 32-bit programs when using the FLAT model (also
  39. several language extentions were added...plus, it's only $49 with
  40. Microsoft's educational discount promotion at the moment).  But MASM
  41. 5.1 is definitely useable for OS/2 2.0...well, as far as Assembly language
  42. goes :) :)
  43.  
  44. I have been using MASM 6.0 to write OS/2 2.0 device drivers for my work,
  45. and MASM 6.0 is a great assembler for OS/2 2.0.  OS/2 2.0 programming
  46. issues are even mentioned in the manual (too bad it's not mentioned on
  47. the box that you can write 32-bit programs, as well as 16-bit OS/2 1.x
  48. executables).
  49.