EvoMikeUK Posted February 20, 2021 Share Posted February 20, 2021 Hi All, I'm trying to store a variable dim _screen = s into a storage address on the SaveKey: temp2 = AVoxWriteByte($30, $15, _screen) drawscreen However when I read it: _screen = AVoxReadByte($30,$15) drawscreen It returns as a 0. Any ideas? Quote Link to comment Share on other sites More sharing options...
EvoMikeUK Posted February 20, 2021 Author Share Posted February 20, 2021 Btw works in Stella, fails on hardware. Quote Link to comment Share on other sites More sharing options...
EvoMikeUK Posted February 20, 2021 Author Share Posted February 20, 2021 (edited) Other variables are also the same problem. Edited February 20, 2021 by EvoMikeUK Quote Link to comment Share on other sites More sharing options...
CapitanClassic Posted February 21, 2021 Share Posted February 21, 2021 bBasic supports the asm tag for inline assembly code. Why not use it to insert the Savekey support routines @Thomas Jentzsch has already written? Quote Link to comment Share on other sites More sharing options...
EvoMikeUK Posted February 21, 2021 Author Share Posted February 21, 2021 (edited) 2 hours ago, CapitanClassic said: bBasic supports the asm tag for inline assembly code. Why not use it to insert the Savekey support routines @Thomas Jentzsch has already written? I have no problem in including ASM and think that is a very good idea, however I have no idea how to actually use it once I have included it. Do you have an example of exactly how I would, for example... save the bB variable S into position $3001 using this method? Thank you. Edited February 21, 2021 by EvoMikeUK Quote Link to comment Share on other sites More sharing options...
EvoMikeUK Posted February 21, 2021 Author Share Posted February 21, 2021 Does anyone have an example of exactly how I would, for example... save the bB variable S into position $3001 using this method after including the ASM? Thank you. Quote Link to comment Share on other sites More sharing options...
CapitanClassic Posted February 21, 2021 Share Posted February 21, 2021 Copy the saveKey code from the other thread here. It is too hard for me to follow the logic in two threads. Quote Link to comment Share on other sites More sharing options...
EvoMikeUK Posted February 21, 2021 Author Share Posted February 21, 2021 Hi Captain, it seems my Atari was broken all along.... @Karl G helped me troubleshoot and it worked fine on my other Atari. Thank you for everyone who helped me on this, I really appreciate it! 1 Quote Link to comment Share on other sites More sharing options...
EvoMikeUK Posted February 22, 2021 Author Share Posted February 22, 2021 Ok, it was dry joints on the controller port! Sorry to bother you all, feel a bit embarrassed now lol 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.