Calculate the cursor position and shift registers when the cursor task is activated. Add MCFG_DEFAULT_LAYOUT() for vertical layout.