I forgot to mention that RAM PAGE 1 must be swapped whenever the gray scale is active, meaning that it's necessary to call CloseGray whenever (if ever) you need to change pages.