Jump to content
IGNORED

Having issues emulating my game.


Recommended Posts

I'm trying to make a home console port of Space Race using visual batari basic. (Its my first time coding a game). I'm coding my game. Everything is going fine, but when I compile and then attempt to test the game with Stella, an error message appears in Stella.

 

Fatal Error

Invalid Instruction.

 

So I tried it with Z26. But when I compile and open the game, instead of opening the game, it opens to a black screen with the word jammed at the bottom.

Please help me. I looked everywhere but I haven't found a way to fix this.

Link to comment
Share on other sites

I doubt it's the emulator. Sounds like the compiled code is hitting one of the 6502 JAM instructions which effectively kills the cpu from fetching new instructions. http://forum.6502.org/viewtopic.php?f=1&t=1409&view=previous

 

The only way to restore the cpu to a valid state once it's jammed on real hardware is sending a reset signal to the cpu. The error message you are seeing is alerting you to the fact the cpu has attempted to execute one of the JAM instructions and is now in an unresponsive state.

 

VICE actually has test programs to ensure once a JAM instruction is executed the cpu indeed remains frozen. These test programs show that jam instructions can be compiled with no issues. https://sourceforge.net/p/vice-emu/code/HEAD/tree/testprogs/CPU/cpujam/

Edited by willymanilly
  • Like 1
Link to comment
Share on other sites

  • 3 weeks later...
On 6/12/2019 at 11:16 PM, willymanilly said:

I doubt it's the emulator. Sounds like the compiled code is hitting one of the 6502 JAM instructions which effectively kills the cpu from fetching new instructions. http://forum.6502.org/viewtopic.php?f=1&t=1409&view=previous

 

The only way to restore the cpu to a valid state once it's jammed on real hardware is sending a reset signal to the cpu. The error message you are seeing is alerting you to the fact the cpu has attempted to execute one of the JAM instructions and is now in an unresponsive state.

 

VICE actually has test programs to ensure once a JAM instruction is executed the cpu indeed remains frozen. These test programs show that jam instructions can be compiled with no issues. https://sourceforge.net/p/vice-emu/code/HEAD/tree/testprogs/CPU/cpujam/

And how do I fix the issue with these programs?

Link to comment
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.
Note: Your post will require moderator approval before it will be visible.

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...