operation[operation.ADD_D] = function (reg) { reg.A = reg.A + reg.D; reg.PC++; };