operation[operation.ADD_M] = function (reg) { reg.A = reg.A + reg.M; reg.PC++; };