Jump to content
andym00

Altirra and illegal opcodes..

Recommended Posts

I'm getting my hands dirty with the A8s for the first time, and I've just run into the fact that I'm getting Illegal instruction errors from Altirra running my code, when I use illegal opcodes..

 

CPU: Illegal instruction hit: 23AD
(10559:249,108) PC=23AC A=FD X=E0 Y=00 S=F8 P=B5 (N  I C)  23AC: CB               bad

 

The opcode in question is SBX (also called AXS and SAX as well depending upon which side of the fence you hail), which is listed as being present on the 6502C on this this webpage..

 

The CPU model in Altirra is set to 6502C, and the 'Enable Illegal Instructions' box is ticked..

 

Is there something I've missed in the configuration maybe ? Or possibly that I've missed something really obvious here ?

 

Just for reference, and to ensure it's not the assembler ballsing it up, I took exactly the same file, assembled it for a C64 and ran it no problems, so my monies on me missing something glaringly obvious, or Altirra is having a bad day..

 

And the code runs fine if I replace the illegals with regular but slower work arounds..

 

edit: Aha, it works fine in Atari800Win Plus..

Edited by andym00

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