home *** CD-ROM | disk | FTP | other *** search
- Path: news.eunet.fi!fipnet!kone!jsaarinen
- Newsgroups: comp.sys.amiga.programmer
- X-NewsReader: IntuiNews 1.2b (31.7.94)
- References: <4eecmg$hn3@eken.hv.se>
- From: "Jyrki Saarinen" <jsaarinen@kone.fipnet.fi>
- Date: Sun, 28 Jan 96 17:31:03 UT
- Comments: Illegal date header - new date added by quicknews
- X-Original-Date: Sun, 28 Jan 96 18:47:55
- MIME-Version: 1.0
- Content-Type: text/plain; charset=iso-8859-1
- Content-Transfer-Encoding: binary
- Subject: Re: SetIntVector() problem
- Message-ID: <38232206@kone.fipnet.fi>
-
-
- > Here's the buggy code:
- >
- > run move.l 4,a6
- > move.l #INTB_VERTB,d0
- > lea int,a1
- > jsr _LVOSetIntVector(a6)
- > move.l d0,oldint
- >
- > hang bra.b hang
- >
- > icode move.w #INTF_VERTB,intreq(a0) ; Clear IRQ
- > rts
- >
- > int dc.l 0 ;ln_Succ
- > dc.l 0 ;ln_Pred
- > dc.b NT_INTERRUPT ;ln_Type
- > dc.b 0 ;ln_Pri
- > dc.l irqname ;ln_Name
- > dc.l idata ;is_Data
- > dc.l icode ;is_Code
- >
- > idata dcb.l 10 ;dummy storage
- > oldint dc.l 0
- > irqname dc.b "vbint",0
-
- The problem is, you should be using AddIntServer() for
- VERTB interrupt!
-
- -- _
- a Stellar programmer _ //
- "Amiga - back for the future" \X/
-