Jump to content

Photo

DPC+ Invalid Instruction on clean compile.


9 replies to this topic

#1 winkdot OFFLINE  

winkdot

    Chopper Commander

  • 185 posts

Posted Sat Jan 19, 2019 1:12 PM

Get this sometimes even when changing code that is not being executing. The invalid instruction appears in Stella (6.) when running the program. Don't get it.

Anyone else get this error?

 

 



#2 Random Terrain OFFLINE  

Random Terrain

    Visual batari Basic User

  • 28,863 posts
  • Controlled Randomness
    Replay Value
    Nonlinear
  • Location:North Carolina (USA)

Posted Sun Jan 20, 2019 4:23 PM

Are you using a ton of semicolons all over the place? That can cause problems.

#3 winkdot OFFLINE  

winkdot

    Chopper Commander

  • Topic Starter
  • 185 posts

Posted Sun Jan 20, 2019 8:44 PM

No semicolons but there are lots of colons between statements. Is that also a problem?



#4 Random Terrain OFFLINE  

Random Terrain

    Visual batari Basic User

  • 28,863 posts
  • Controlled Randomness
    Replay Value
    Nonlinear
  • Location:North Carolina (USA)

Posted Mon Jan 21, 2019 7:40 AM

I don't think so, unless your lines are so long that it's causing a weird problem. Somebody recently was using a ton of semicolons and that somehow created a problem, so that's why I asked.

#5 stephena OFFLINE  

stephena

    River Patroller

  • 3,355 posts
  • Stella maintainer
  • Location:Newfoundland, Canada

Posted Mon Jan 21, 2019 10:34 AM

There was a change in Stella 6 in this area.  I will look into it.



#6 stephena OFFLINE  

stephena

    River Patroller

  • 3,355 posts
  • Stella maintainer
  • Location:Newfoundland, Canada

Posted Mon Jan 21, 2019 12:01 PM

Also, please post the src and ROM that exhibits this issue (or send by PM if you don't want it released to the public).



#7 winkdot OFFLINE  

winkdot

    Chopper Commander

  • Topic Starter
  • 185 posts

Posted Mon Jan 21, 2019 1:15 PM

Also, please post the src and ROM that exhibits this issue (or send by PM if you don't want it released to the public).

i will send you a PM the next time I get it. Sometimes moving the code fixes it. Weird



#8 winkdot OFFLINE  

winkdot

    Chopper Commander

  • Topic Starter
  • 185 posts

Posted Wed Jan 23, 2019 10:42 AM

This is driving me nuts!!!! Just removing a group of REM statements causes invalid instructions. Put them back and it fixes it. How does that make any sense????? Starting to think Stella 6 is badly broken.



#9 stephena OFFLINE  

stephena

    River Patroller

  • 3,355 posts
  • Stella maintainer
  • Location:Newfoundland, Canada

Posted Wed Jan 23, 2019 4:43 PM

The ROM you've sent by PM isn't in the correct format or the correct size.  So it looks like the compilation is being done incorrectly.  And hence Stella isn't treating it as a DPC+ ROM.

 

I don't use bBasic, so I suggest posting your code here (or some subset of it), and getting advice from bBasic users on how to compile DPC+ ROMs.  For now, I don't think this is a Stella problem.



#10 winkdot OFFLINE  

winkdot

    Chopper Commander

  • Topic Starter
  • 185 posts

Posted Wed Jan 23, 2019 7:51 PM

The ROM you've sent by PM isn't in the correct format or the correct size.  So it looks like the compilation is being done incorrectly.  And hence Stella isn't treating it as a DPC+ ROM.

 

I don't use bBasic, so I suggest posting your code here (or some subset of it), and getting advice from bBasic users on how to compile DPC+ ROMs.  For now, I don't think this is a Stella problem.

I had some odd bank switching going on. Thanks much for looking!






0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users