if (msg.fnc == FuncCode.readInputRegisters) return packResult(/* return data */); return illegalFunction;
See Implementation