home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / mswindo / programm / misc / 4858 < prev    next >
Encoding:
Text File  |  1993-01-11  |  1.7 KB  |  44 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!usc!wupost!csus.edu!netcom.com!hill
  3. From: hill@netcom.com (Tom Hill)
  4. Subject: Re: Calling ISR from Windows application
  5. Message-ID: <1993Jan12.004156.27998@netcom.com>
  6. Organization: Netcom Online Communications Services (408-241-9760 login: guest)
  7. References: <1993Jan11.151339.26243@nntpd.lkg.dec.com>
  8. Date: Tue, 12 Jan 1993 00:41:56 GMT
  9. Lines: 33
  10.  
  11. In article <1993Jan11.151339.26243@nntpd.lkg.dec.com> j_pan@ranger.enet.dec.com (Joanna Pan) writes:
  12. >
  13. >I am porting a DOS application to Windows environment. Can I use in-line
  14. >assembly to make an interrupt call ? It's not the regular int 21h or int 5Ch.
  15. >e.g.
  16. >    _asm {
  17. >         push  ds
  18. >         push  ax
  19. >         mov   ax, 0DE11h    ; some function code
  20. >         int   78h        ; call ISR
  21. >         pop   ax
  22. >         pop   ds
  23. >         }
  24. Yes, but bear in mind that windows may be using some vectors that were
  25. available in DOS.
  26. >
  27. >Can I use 32-bit registers instead of 16-bit ? 
  28. You can use them, but I don't think the in line assembler recognizes them.
  29.  
  30. >If I choose to write a separate assembly file, can I write truely 
  31. >32-bit programme ?
  32. No. Windows normally runs code with 16 bit segment limits, you can use
  33. the 32 bit registers, but you can't use them to address past the end of the
  34. segment. For true 32 bit programming you need Win32s from the NT beta,
  35. or one of the third party add ons. (I think Watcom has one).
  36. >_______________________________________________________________________________
  37. >!    Joanna Pan            email:j_pan@ranger.enet.dec.com       !
  38. >!     Personal Computer Systems Group                          !
  39. >!    Digital Equipment Corporation                          !
  40. >!    Littleton, Massachusetts                          !
  41. >-------------------------------------------------------------------------------
  42.  
  43. Tom Hill
  44.