Nukey Shay Posted September 29, 2004 Author Share Posted September 29, 2004 Yup...the BNE at the end works as an unconditional branch. It works fine as long as the last result was non-zero (which the PrintDisplay subroutine does...since it loads an immediate value of $20 to reset the countdown timer just before returning). If you can't be sure of what the final processor status is in the JSR just before it, it's best just to change it back to a JMP. The Portals and Mag_1 subroutines also always end up with non-zero results before returning (Portals ends with $FF - the value sitting in the Y register...and Mag_1 ends with the magnet's Y-coordinate+. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.