Path: utzoo!mnetor!tmsoft!torsqnt!hybrid!scifi!bywater!uunet!cbmvax!andy From: andy@cbmvax.commodore.com (Andy Finkel) Newsgroups: comp.sys.amiga.programmer Subject: Re: Problems with ReportMouse() Keywords: is it just my brain, or am I dead? Message-ID: <18123@cbmvax.commodore.com> Date: 26 Jan 91 04:05:13 GMT References: <1991Jan23.031010.11248@cs.uiuc.edu> <1991Jan23.221953.24626@cs.uiuc.edu> <1991Jan24.220856.1366@cs.uiuc.edu> Reply-To: andy@cbmvax.commodore.com (Andy Finkel) Organization: Commodore, West Chester, PA Lines: 30 In article <1991Jan24.220856.1366@cs.uiuc.edu> schwager@cs.uiuc.edu (Michael Schwager) writes: >Well, dang. I tried it the new way, and it still wouldn't work. The only >thing that would was actually setting the Window's flags. Which is fine, but >I don't like wild-goose chases. Ugh. > >-Mike The intuition.library has the parameters to ReportMouse defined one way. However, when you call an Amiga library routine, you are usually not calling the library directly. Instead first you go through a stub routine supplied by your compiler mfgr that pulls the arguments off the stack, and sticks them in the appropriate register. In the case of ReportMouse, one of the compiler mfgrs got it wrong, and had his/her stub routine putting the arguments in the wrong registers. That's why the docs tell you to look in the docs that came with your compiler. Or you could disassemble your stub and see what its doing, of course. andy -- andy finkel {uunet|rutgers|amiga}!cbmvax!andy Commodore-Amiga, Inc. "God was able to create the world in only seven days because there was no installed base to consider." Any expressed opinions are mine; but feel free to share. I disclaim all responsibilities, all shapes, all sizes, all colors.