Changed to array based w memory. Adding old regs bases w mem as reference.