ESI and EDI support

Added support to use the ESI and EDI registers.