lookup Instruction ¶This instruction is a mixed-type instruction.
The disassembler can generate lookup instructions when disassembling a node of a multinode model with positive length of look-ahead signal segment.
The field ngram_env_la_sz of qsmm_desc_s structure passed to the function qsmm_create specifies the length when creating a multinode model.
The function qsmm_get_ngram_env_la_sz returns the length for an existing multinode model.
The instruction has the syntax
lookup position
and sets the outcome equal to a look-ahead signal at zero-based position in the look-ahead signal segment.
The assembler does not support loading assembler programs into the nodes of a multinode model with positive length of look-ahead signal segment.
Therefore, if you need to assemble a program (e.g. generated by the disassembler) containing lookup instructions, you can do the following: