Using RevEng's latest 64k Batari BASIC mod. Having an issue with DPC+ and memory pushing and pulling. No matter what I push into memory, I always get back 0's when pulling it out. I've run a few test programs and the stuff I am storing rather never gets stored, or is lost. In my game I have multiple enemies and objects on screen and the only way to be able to keep track of all the info is to push and pull values for these objects into the ARM's memory using the stack, push, and pull commands. For example I do something like:
if a>100 then a=0
stack 0 ' have tried other values, same results
push a c r j
pull a c r j
score=score+a ' Just to see what the a variable's doing
Always 0. I first noticed this in my main game program whenever I tried to do anything with the enemy players, everything always reset to 0. Is this just a thing with Stella, something wrong with Batari, or something I am doing wrong?
Thanks for any help you can give so I can continue with Robot Zed. I am really liking what I am getting with DPC+ so far.