external memory interface to use different peripherals on Arduino Mega

Oh I assumed you had an ATmega to work with

You can test compile some code, mapping variables beyond the normal RAM space, read disassembled code, maybe the AVR Studio simulator will show you the pin states of the external memory interface while it's running

Also this is relevant but might help
http://www.nongnu.org/avr-libc/user-manual/malloc.html