changed memtoreg to ALUresult