I guess this was already discussed in the forum, but I could not find.
Some time I wonder why comparing values in memory, which change very quickly is problematic.
The Annex is the code that is easier clearly shows what I mean.
I noticed that if faster-moving objects are comparable with the values that it can "miss" comparison.
My guess is that this is due, with a value greater than 1 is changed twice a NMI pause/time, and depending on what the value is in cell SPR2_X is skipped?
For example, giving a 3x INC time in SPR3_X values, the values in the memory cell "go" in the following order: 00,03,06,09 etc and if I make a comparison with the CMP 04 that such a comparison is not possible ??? I do not know if I understand correctly...
We would ask to explain and can describe how to do correctly, such a comparison with objects, whose memory cells are increased more than 1x during the NMI / LOOP.
Some time I wonder why comparing values in memory, which change very quickly is problematic.
The Annex is the code that is easier clearly shows what I mean.
I noticed that if faster-moving objects are comparable with the values that it can "miss" comparison.
My guess is that this is due, with a value greater than 1 is changed twice a NMI pause/time, and depending on what the value is in cell SPR2_X is skipped?
For example, giving a 3x INC time in SPR3_X values, the values in the memory cell "go" in the following order: 00,03,06,09 etc and if I make a comparison with the CMP 04 that such a comparison is not possible ??? I do not know if I understand correctly...
We would ask to explain and can describe how to do correctly, such a comparison with objects, whose memory cells are increased more than 1x during the NMI / LOOP.