George Gwilt wrote:
> I have never before used this trap but have just now tried it out. It
> appears that you have to put the return address on the (user) stack  
> before Trap #1 otherwise the return is to whatever happens to be on  
> the user stack which can be rather nasty.

Yes, the normal schema to use it is

        bsr.s   something_nasty
        ; normal stuff
        rts

something_nasty
        moveq   #sms.xtop,d0
        trap    #1

        ; nasty stuff here
        rts

Marcel

_______________________________________________
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm

Reply via email to