+atari2600land Posted June 24, 2018 Share Posted June 24, 2018 I put at the beginning #score=0 but when I tell it to print the score, it always is 65535. Any ideas why and how to fix this? dj1.bas Quote Link to comment Share on other sites More sharing options...
Kiwi Posted June 24, 2018 Share Posted June 24, 2018 You do have an stack overflow for GOTOing out of a gosub.line 131: if jumpingthingy=150 then goto thebeginningI would move that to the main game loop. I added STACK_CHECK to your project and compiled it. The score does start at 0 and does increase when the screen move up. I am using IntyBASIC v1.2.9 and using Tuesday, July 14, 2015, 2:19:38 PM version of AS1600, haven't yet used the updated version of AS1600 that was recently patched. Quote Link to comment Share on other sites More sharing options...
+atari2600land Posted June 24, 2018 Author Share Posted June 24, 2018 That line doesn't seem to be the problem. I moved it. I even commented it out, and it's still the same problem. Quote Link to comment Share on other sites More sharing options...
intvnut Posted June 24, 2018 Share Posted June 24, 2018 More information about your environment would be useful. In fact, I would ask that anyone making a bug report or ask for help include this information, as the details often matter quite a lot. What flags did you give to IntyBASIC's compiler? What flags did you give to AS1600? What flags did you give to jzIntv? What version of IntyBASIC are you using? (Note: There were two releases of 1.2.9 and they're different, but I couldn't tell you how to tell them apart.) What version of AS1600 are you using? What version of jzIntv are you using? For IntyBASIC and recent versions of AS1600 and jzIntv, you can get the version as follows: . $ intybasic IntyBASIC compiler v1.2.9 Nov/07/2017 (c) 2014-2016 Oscar Toledo G. http://nanochess.org/ [... lots more stuff snipped ...] $ as1600 -v AS1600 built from SVN Revision 1644 $ jzintv jzIntv v1.0 SVN Revision 1644 [... lots more stuff snipped ...] . If I had to venture a guess, you're compiling your game with the --cc3 flag. There is a known bug in IntyBASIC where it fails to include the RAM section in the output. You can work around this by adding this to your CFG file: . [memattr] $8000 - $9FFF = RAM 16 Quote Link to comment Share on other sites More sharing options...
+atari2600land Posted June 24, 2018 Author Share Posted June 24, 2018 This is what I use: Quote Link to comment Share on other sites More sharing options...
+nanochess Posted June 24, 2018 Share Posted June 24, 2018 Remove the --jlp switch from compilation. The most probable thing is you're running jzintv without the --jlp switch so it reads non-existant memory. Quote Link to comment Share on other sites More sharing options...
+atari2600land Posted June 24, 2018 Author Share Posted June 24, 2018 Yep, that did it. Thank you! 1 Quote Link to comment Share on other sites More sharing options...
intvnut Posted June 25, 2018 Share Posted June 25, 2018 Or, leave the --jlp switch on, and run jzintv with --jlp, or upgrade to a newer jzintv + AS1600 that turns it on automagically based on the output of IntyBASIC. I've been taking great pains to make these features all play nicely together. 1 Quote Link to comment Share on other sites More sharing options...
+DZ-Jay Posted June 26, 2018 Share Posted June 26, 2018 Or, leave the --jlp switch on, and run jzintv with --jlp, or upgrade to a newer jzintv + AS1600 that turns it on automagically based on the output of IntyBASIC. I've been taking great pains to make these features all play nicely together. Or use the IntyBASIC SDK, which will make sure to use proper flags between both. I should really update the SDK with the latest version of the tools... -dZ. 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.