So I am looking for RAM addresses the blue sphere special stages. I looked and found some in the RAM editing guide and found
E426 and E002 gives player orientation
E422 and E434 give player X coordinate in 32x32 grid position
E424 and E436 give player Y coordinate in 32x32 grid position
But couldn't find any RAM address for when Sonic is in between the grid points or positions of the spheres in the or relative to Sonic. Also nothing about a change from a blue sphere to a red, or blue to a ring.
I see in the hex code from nineko's editor and palettes produce the layout what spheres are where, but don't know how that help for ram address. I also looked in the disassembly for Sonic 3&K, and saw Get Blue Spheres.asm, Ring.asm, and Sphere.asm. Maybe thats the key? If anyone has any insight or suggestion of where they are or how to find them I would greatly appreciate it!