I'm using the code snippet from the basic09 reference. I've changed REGS.X and REGS.Y to every value in their expected range.