🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.pascal.borland
Article #710

Re: What's wrong with this little TSR?

#710
From: Bernd Mueller
Date: Wed, 26 Aug 1998 00:00
41 lines
1557 bytes
>
>procedure CountTime; interrupt;
>begin
>     inc(x);
>     if x >= 20 then
>        begin
>             InPort := PortW[$370];
>             x := 0;
>             if InPort = 72 then Beep;
>        end;
>     Timer;
>     asm
>       pushf 
>     end;
>end;
>
Andreas,

you have to push the flags before calling the original
timer-interrupt:

procedure CountTime; interrupt;
begin
     inc(x);
     if x >= 20 then
        begin
             InPort := PortW[$370];
             x := 0;
             if InPort = 72 then Beep;
        end;
     asm
       pushf
     end;   
     Timer;
end;



Greetings Bernd.
[remove NOSPAM for personal e-mail]
Technical Details
Message-ID: <35e35260.3528959@news.snafu.de>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <35ded96b.41078299@news.rz.uni-karlsruhe.de>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10261c,9bcc55cc3c0b88c1
X-Google-Attributes: gid10261c,public
X-Google-Thread: 110467,9bcc55cc3c0b88c1
X-Google-Attributes: gid110467,public
X-Google-Thread: 111659,9bcc55cc3c0b88c1
X-Google-Attributes: gid111659,public
X-Google-Thread: 1006de,9bcc55cc3c0b88c1
X-Google-Attributes: gid1006de,public
X-Google-Thread: 110930,9bcc55cc3c0b88c1
X-Google-Attributes: gid110930,public
From: bmueller@berlin.NOsnafuSPAM.de (Bernd Mueller)
Subject: Re: What's wrong with this little TSR?
Date: 1998/08/26
Message-ID: <35e35260.3528959@news.snafu.de>
X-Deja-AN: 384740461
References: <35ded96b.41078299@news.rz.uni-karlsruhe.de>
Organization: [Posted via] Interactive Networx
Newsgroups: comp.lang.pascal.borland,comp.lang.pascal.misc,de.comp.lang.pascal.misc,fido.ger.pascal,z-netz.sprachen.pascal