nop1 Instruction ¶The mixed-type instruction nop1 should have the corresponding instruction meta-class registered for a multinode model.
The instruction should have single outcome 0 it always returns.
The instruction should not have any side effect.
You can define the instruction meta-class by the following code block:
static QSMM_INSTR_META_CLASS(nop1) {
return 0;
}
The disassembler can generate the nop1 instruction at the beginning of a plain assembler program.
You can define the user instruction nop that preserves the outcome of the previous instruction invoked by a node, as opposed to the nop1 instruction always returning outcome 0.
You can define the instruction meta-class for the nop instruction by the following code block:
static QSMM_INSTR_META_CLASS(nop) {
switch (mehcall->evt) {
case QSMM_EVT_INSTR_CLASS_INIT:
qsmm_set_mehcall_noutcome(mehcall,0);
break;
}
return 0;
}
If possible, use the nop1 instruction instead of nop instruction—reduce the number of profile probabilities written to the state transition matrix to make it simpler and decrease the amount of memory needed to store the matrix.