Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!pitt!willett!ForthNet From: ForthNet@willett.pgh.pa.us (ForthNet articles from GEnie) Newsgroups: comp.lang.forth Subject: MS Windows 3.0 Message-ID: <2666.UUL1.3#5129@willett.pgh.pa.us> Date: 24 Apr 91 03:10:41 GMT Organization: (n.) to be organized. But that's not important right now. Lines: 45 Category 1, Topic 57 Message 18 Tue Apr 23, 1991 D.RUFFER [Dennis] at 22:12 EDT Re: G.LEFAVE [Gene] > I run my own comm program based on an old pf model, and it runs > at 19.2K baud reliably. Using DPMI int calls? > The DPMI mode switch takes a couple 100 us, which would prevent > operation above 9.6 K baud. We belive that is what the problem is, but there is a way to tell the 386 to not trap on a selected set of I/O ports. We've yet to figure out how to get DPMI or Windows to do it. > My current problem is trying to trap the Break Interrupt. What > ought to be trivial is turning into a real project. I really would appreceate hearing how you do on that one. It has me totally stumped, especially considering what our DOS Break code does. However, I think there is going to have to be a "mode" switch in our thinking here as we work under Windows. "Normal" Forth (or the ones I have the most experience with) only looks at the keyboard when it wants to (i.e. passive). The way that Windows wants you to write code is to let Windows shove messages at you whenever it wants to. Thus, there is always a portion of your code that is looking for something to happen (i.e. active). There is no Break support in Windows, because you always have the mouse to click on the abort button. Making it work, is going to be real fun. Can anyone out there share their experiences in working with this "mind switch"? I'm not sure about Unix, but the Mac does work under this Message Processing architecture. How does this work with Forth's KEY and EXPECT? You're right though Gene, this IS a real project. Is it going to be worth it? {B-{)> DaR ----- This message came from GEnie via willett. You *cannot* reply to the author using e-mail. Please post a follow-up article, or use any instructions the author may have included (USMail addresses, telephone #, etc.). Report problems to: dwp@willett.pgh.pa.us _or_ uunet!willett!dwp