On 30 Jan 2011, at 16:33, Norman Dunbar wrote: >> >> This is the code that I'm using at the end of my USB_RD (and USB_WR) job: >> >> >> moveq #mt.frjob,d0 >> moveq #me,d1 >> moveq #0,d3 >> trap #1 ; >> Remove ourselves! > >> The only problem is that it doesn't work! > > This reminds me of something I used to do many years ago, and the reason > I did it was because i saw it done by "someone better than me": > > kill_me moveq #mt.frjob,d0 > moveq #me,d1 > moveq #0,d3 > trap #1 > bra.s kill_me > > I can't remember if it was Andy Pennell or Adrian Dickens or Chas > Dillon. Someone did it though.
Interesting. I've never to my knowledge needed the final branch in any of my programs. With the branch in, the program is not going to do very much until it eventually decides to stop. Without that anything may presumably occur. George _______________________________________________ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm