🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #5407

Re: How to call 0x21-interrupt 0x4e/0x4f (findfirst/findnext) inside a cpp-function?

#5407
From: Alan Bellingham
Date: Sun, 21 Aug 2005 20:18
42 lines
2548 bytes
"Boba" <Boba@somewhere.world> wrote:

>When i try the following in the Command Prompt window (Windows 2000)
>
>C:\WINNT>debug notepad.exe
>-u
>0B34:0000 0E            PUSH    CS
>0B34:0001 1F            POP     DS
>0B34:0002 BA0E00        MOV     DX,000E
>0B34:0005 B409          MOV     AH,09
>0B34:0007 CD21          INT     21
>0B34:0009 B8014C        MOV     AX,4C01
>0B34:000C CD21          INT     21
>0B34:000E 54            PUSH    SP
>0B34:000F 68            DB      68
>0B34:0010 69            DB      69
>0B34:0011 7320          JNB     0033
>0B34:0013 7072          JO      0087
>0B34:0015 6F            DB      6F
>0B34:0016 67            DB      67
>0B34:0017 7261          JB      007A
>0B34:0019 6D            DB      6D
>0B34:001A 206361        AND     [BP+DI+61],AH
>0B34:001D 6E            DB      6E
>0B34:001E 6E            DB      6E
>0B34:001F 6F            DB      6F
>-q
>
>C:\WINNT>
>
>it makes me think that 32-bit Windows uses interrupts at least as much
>as any of the prev. ms oses.

That's quite possibly the DOS stub. The one that, when you try to run a
Windows program under DOS, just prints out "This program requires
Windows to run" before exiting. If debug itself is the old DOS debug,
then naturally it will use the DOS entry point.
Alan Bellingham
-- 
Me <url:mailto:alanb@episys.com> <url:http://www.doughnut.demon.co.uk/>
ACCU - C, C++ and Java programming               <url:http://accu.org/>
The 2004 Discworld Convention                   <url:http://dwcon.org/>
Technical Details
Message-ID: <68ohg1142e6hvq5i3k3fvo6fcqoof6sv81@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed.inode.at!reader.uucp.at!feeder02.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail
References: <spjdg1podr0h6mokjdbb7hulhko28ch37p@4ax.com> <4307238c@newsgroups.borland.com> <4308c149$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,62e005f4d5ce124e
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Alan Bellingham <alanb@episys.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: How to call 0x21-interrupt 0x4e/0x4f (findfirst/findnext) inside a cpp-function?
Date: Sun, 21 Aug 2005 21:18:36 +0100
Reply-To: alanb@episys.com
Message-ID: <68ohg1142e6hvq5i3k3fvo6fcqoof6sv81@4ax.com>
References: <spjdg1podr0h6mokjdbb7hulhko28ch37p@4ax.com> <4307238c@newsgroups.borland.com> <4308c149$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 3.0/32.763
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 62.49.31.105
X-Trace: newsgroups.borland.com 1124655496 62.49.31.105 (21 Aug 2005 13:18:16 -0700)
Lines: 42
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed.inode.at!reader.uucp.at!feeder02.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail