Next: , Previous: , Up: Assembler Instructions   [Contents][Index]

5.3.8 abort Instruction

This instruction is a mixed-type instruction. The disassembler can generate it after a user instruction or another mixed-type instruction when there is no information about instructions following the user or mixed-type instruction. This is the case when the instruction emitting engine emitted the user or mixed-type instruction once and that instruction has not returned control, or when the disassembler discarded subsequent instructions according to disassembling parameters.

You can use the following approach to assemble programs generated by the disassembler containing abort instructions. First, make the disassembler generate a single abort instruction at the end of an assembler program by setting the field use_abort_1 of qsmm_disasm_desc_s structure to a non-zero value. In this case, the assembler program contains jumps to this abort instruction from other locations where the disassembler would insert abort instructions in default mode. The disassembler additionally generates a jump to the beginning of this assembler program beneath this abort instruction. Second, implement the abort instruction as the nop1 instruction (without any effect). After you have done these two things, the environment state identification engine transfers control to the beginning of this assembler program when the next instruction to execute is unknown. Such looping may be appropriate in your situation.