Jump to content
Mallard Games

Transitioning from Title Screen To Game Mode

Recommended Posts

Changing the JMP instructions to JSR is fine if you don't mind that the stack would then be nested 2 bytes higher.  Losing 3 bytes of Rom (by adding the new JSR for the crosshair) might be the better option once Ram starts getting scarce ;)

 

Share this post


Link to post
Share on other sites

Oops sorry, that is very strange considering the only code i change was breaking up the checkstate subroute into 2 parts. The portion that actually does the bankswitching was moved into the macro and that's pretty much it. Technically it shouldn't of have borked, but it did...? 🧐

Share this post


Link to post
Share on other sites

You're missing the actual -reason- it failed...by breaking up the routine which used to reside in one bank, it now needs to rely on the return portion of the macro between positioning the two objects...which sends it back to the address and bank of the last JSR instruction executed.  JMP does not preserve return information on the stack, so the player's crosshair object was never given the chance to be set in place.

Edited by Nukey Shay

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...