Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!evax!cs4344af From: cs4344af@evax.arl.utexas.edu (Fuzzy Fox) Newsgroups: comp.sys.cbm Subject: Re: ML question Message-ID: <1990Dec11.033720.16559@evax.arl.utexas.edu> Date: 11 Dec 90 03:37:20 GMT References: <90340.174157JMHAAS@MTUS5.BITNET> Organization: Computer Science Engineering Univ. of Texas at Arlington Lines: 11 In article <90340.174157JMHAAS@MTUS5.BITNET> JMHAAS@MTUS5.BITNET (Elezar) writes: >Just as some tacky humour.. An interesting way to execute a jmp: > Push the address that you want to jump to on the stack. > Execute a rts.. It looks for the address to go home to on the stack. Careful with this one! The addres that the 6502 jumps to on an RTS is actually one GREATER than the address pushed onto the stack. (This is offset by the fact that the JSR instruction pushes the address just BEFORE the return point onto the stack.) Heh...Go figure....