is DAT storage consecutive
bdickens
Posts: 110
This probably sounds incredibly dumb, but if I put two (or in my case 8) variables into DAT storage consecutively, I presume they are stored consecutively ?
most of the programs read the data as 8 different variables, but one method would be faster if it could just read them as an array. Just making sure the compiler isn't doing any odd manipulations with storage. So if VAR1 is defined, then VAR2, they will exist in memory that way ?
Thanks
most of the programs read the data as 8 different variables, but one method would be faster if it could just read them as an array. Just making sure the compiler isn't doing any odd manipulations with storage. So if VAR1 is defined, then VAR2, they will exist in memory that way ?
Thanks
Comments
Yes, they are stored consecutively.
You can take a look at the TV driver to see how it's working. It's passing the 1st variables, and calculating the other addresses based on this one.
JM
That was a key improvement. I would have run into that one the way I had it working.
Hahaha!
Thanks Mike!
You just solved one of my issues! I was not aware of that and wondering why I had to put all my variables in LONG to be able to access them in the right order!
JM