The Trap #1 call with D0 = $25 is SMS.XTOP. The code following Trap
#1 is "executed as if it was part of a system call". The manual goes
on to say that the "routine must finish in an RTS which brings it
back to user mode on return".
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.
Has anyone else experienced this?
George
_______________________________________________
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm