+atari2600land Posted January 7, 2019 Author Share Posted January 7, 2019 Just tried it on a real Intellivision. Coin does not show up. Quote Link to comment Share on other sites More sharing options...
+cmadruga Posted January 7, 2019 Share Posted January 7, 2019 Hello, if you are talking about the file I provided, unfortunately I have no idea why it would not work on real hardware. At the moment I dont have a way to test it either... sorry! Quote Link to comment Share on other sites More sharing options...
+atari2600land Posted January 7, 2019 Author Share Posted January 7, 2019 I'm referring to DZ-Jay's code. I'll try yours. Quote Link to comment Share on other sites More sharing options...
+DZ-Jay Posted January 7, 2019 Share Posted January 7, 2019 I'm referring to DZ-Jay's code. I'll try yours. Make sure that you are loading GRAM properly and a WAIT afterwards. My code works, it does nothing strange. It does, however, depend on GRAM being loaded properly and in the same position you had it before. Quote Link to comment Share on other sites More sharing options...
+DZ-Jay Posted January 7, 2019 Share Posted January 7, 2019 By the way, his code is the same as mine, but without the macro. Quote Link to comment Share on other sites More sharing options...
+atari2600land Posted January 7, 2019 Author Share Posted January 7, 2019 (edited) Why won't it work right? I'm using v.1.2.9. Here's how I compile it (my batch folder) intybasic --jlp --title "quest of the cranberry." cranberry6.bas cranberry6.asm bin\as1600.exe -o cranberry6 -l cranberry6.lst cranberry6.asm pause And this is the result on older versions of jzIntv and LTO Flash!: Edited January 7, 2019 by atari2600land Quote Link to comment Share on other sites More sharing options...
+DZ-Jay Posted January 7, 2019 Share Posted January 7, 2019 I have no idea. The file I sent you worked fine in emulation under jzIntv. Did you change anything? Like I said, please confirm that GRAM is being loaded adequately. Also make sure that your code or data doesn't break out of the ROM segment boundaries. dZ. P.S. I didn't check or debug your file, only the small snippet of code I added. Sent from my iPad using Tapatalk Pro Quote Link to comment Share on other sites More sharing options...
+atari2600land Posted January 7, 2019 Author Share Posted January 7, 2019 I found the problem. Inty BASIC does not like it when I divide numbers by numbers that aren't powers of 2. So I ended up changing cmaduga's code to this: cointwirltimer=cointwirltimer+1 #backtab(29)=$0800 + BG_ORANGE + FG_YELLOW + 8*(57+animate(cointwirltimer/4)) if cointwirltimer=44 then cointwirltimer=0 And that works on older jzINTV, newest jzINTV, and LTO Flash. Quote Link to comment Share on other sites More sharing options...
+DZ-Jay Posted January 7, 2019 Share Posted January 7, 2019 I found the problem. Inty BASIC does not like it when I divide numbers by numbers that aren't powers of 2. So I ended up changing cmaduga's code to this: cointwirltimer=cointwirltimer+1 #backtab(29)=$0800 + BG_ORANGE + FG_YELLOW + 8*(57+animate(cointwirltimer/4)) if cointwirltimer=44 then cointwirltimer=0 And that works on older jzINTV, newest jzINTV, and LTO Flash. You know that the problem isn't the divide by 10. It's probably the size of the code that went beyond a segment. You should have changed the segment using the ASM ORG directive. If I were you, I wouldn't accept something like "IntyBASIC doesn't like it when I divide by numbers which are not powers of 2." That sounds to me like a very stupid reason, so you should know that there is something else going on. If you don't find out what it is, it'll probably bite you in the ass some day soon. dZ. Quote Link to comment Share on other sites More sharing options...
+cmadruga Posted January 7, 2019 Share Posted January 7, 2019 My experience with going past segment limits is that jzintv won't even run it... usually I get a black screen. In this case it's interesting that the issue only shows up on real hardware. Either way, I'm not sure I get the whole issue mentioned about division, but the segment thing should be easy to test. Quote Link to comment Share on other sites More sharing options...
+DZ-Jay Posted January 7, 2019 Share Posted January 7, 2019 My experience with going past segment limits is that jzintv won't even run it... usually I get a black screen. In this case it's interesting that the issue only shows up on real hardware. Either way, I'm not sure I get the whole issue mentioned about division, but the segment thing should be easy to test. When your code goes out into the weeds, it will crash the emulator. When your data structures go out into the weeds, the emulator may just read garbage from them and run normally. If those data structures define graphics, then you may or may not get what you expect. Quote Link to comment Share on other sites More sharing options...
+cmadruga Posted January 7, 2019 Share Posted January 7, 2019 Thats good to know, thanks. Quote Link to comment Share on other sites More sharing options...
+atari2600land Posted January 7, 2019 Author Share Posted January 7, 2019 How big are segments? The code is only 9kb in size. Quote Link to comment Share on other sites More sharing options...
+atari2600land Posted January 7, 2019 Author Share Posted January 7, 2019 I tried a whole bunch of moving code around. Nothing works. I tried putting in ASM ORG statements. That didn't help either. Quote Link to comment Share on other sites More sharing options...
+cmadruga Posted January 7, 2019 Share Posted January 7, 2019 How big are segments? The code is only 9kb in size. 9K is enough to blow past some segments already, I don't know which one you are putting your code at. Quote Link to comment Share on other sites More sharing options...
+atari2600land Posted January 7, 2019 Author Share Posted January 7, 2019 I just moved something around again and I think I have it working. Extremely odd and irritating because I know I tried doing what I did before. Quote Link to comment Share on other sites More sharing options...
+cmadruga Posted January 7, 2019 Share Posted January 7, 2019 Yay? Anyway, if it's 9K you could put it on $C040 and it should work. Quote Link to comment Share on other sites More sharing options...
artrag Posted January 8, 2019 Share Posted January 8, 2019 Look for 42k.bas in samples 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.