Error: Arduino Mega 2560 - VGA OUTPUT

The exact registers and their names do differ between Uno (ATmega328) and the Mega (ATmega2560) so you will have to compare
datasheets to see what the equivalent is.