computer serial is -12v and +12v
arduino mega serial is 0 and +5 volts
You need a hardware converter that converts the voltages (
max232 or something similar)
The converter can just be plugged into AUX-1 PIN D0 and D1 are also knows as TXD0 ad RXD0, the serial inputs to the mega.
No firmware modifications are required.