In all of this, I don't remember the OP ever mentioning saving and restoring the 64-bit registers. Without doing that the calling conventions are violated, and you are breaking any AMODE(64) caller.
-- Tom Marchant ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN