Article View: comp.os.ms-windows.programmer.misc
Article #2710Re: Calling ISR from Windows application
From: Tom Hill
Date: Tue, 12 Jan 1993 00:41
Date: Tue, 12 Jan 1993 00:41
33 lines
1820 bytes
1820 bytes
In article <1993Jan11.151339.26243@nntpd.lkg.dec.com> j_pan@ranger.enet.dec.com (Joanna Pan) writes:
>
>I am porting a DOS application to Windows environment. Can I use in-line
>assembly to make an interrupt call ? It's not the regular int 21h or int 5Ch.
>e.g.
> _asm {
> push ds
> push ax
> mov ax, 0DE11h ; some function code
> int 78h ; call ISR
> pop ax
> pop ds
> }
Yes, but bear in mind that windows may be using some vectors that were
available in DOS.
>
>Can I use 32-bit registers instead of 16-bit ?
You can use them, but I don't think the in line assembler recognizes them.
>If I choose to write a separate assembly file, can I write truely
>32-bit programme ?
No. Windows normally runs code with 16 bit segment limits, you can use
the 32 bit registers, but you can't use them to address past the end of the
segment. For true 32 bit programming you need Win32s from the NT beta,
or one of the third party add ons. (I think Watcom has one).
>_______________________________________________________________________________
>! Joanna Pan email:j_pan@ranger.enet.dec.com !
>! Personal Computer Systems Group !
>! Digital Equipment Corporation !
>! Littleton, Massachusetts !
>-------------------------------------------------------------------------------
Tom Hill
Technical Details
Message-ID:
<1993Jan12.004156.27998@netcom.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!usc!wupost!csus.edu!netcom.com!hillReferences:
<1993Jan11.151339.26243@nntpd.lkg.dec.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.misc Path: arc1-ca.pugleaf.net!sparky!uunet!usc!wupost!csus.edu!netcom.com!hill From: hill@netcom.com (Tom Hill) Subject: Re: Calling ISR from Windows application Message-ID: <1993Jan12.004156.27998@netcom.com> Organization: Netcom Online Communications Services (408-241-9760 login: guest) References: <1993Jan11.151339.26243@nntpd.lkg.dec.com> Date: Tue, 12 Jan 1993 00:41:56 GMT Lines: 33