Echelon Neuron Uživatelský manuál Strana 121

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 237
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 120
RET (Return from Call)
The RET instruction performs a return-from-call operation. The RET
instruction uses the implicit addressing mode.
The RET instruction applies to Series 3100, 5000, and 6000 devices.
Syntax:
The RET instruction requires no operands:
RET
Table 45 describes the attributes of the RET instruction.
Table 45. RET Instruction
Instruction Hexadecimal
Opcode
Instruction
Size (Bytes)
CPU Cycles
Required
Affect on
Carry Flag
RET 31 1 4 None
Example:
The following example calls a function named clearFlags. After the function
completes, the RET instruction returns from the function, and the function
continues operation with the instruction that follows CALL instruction.
call clearFlags ; ( )
...
br somewhere
clearFlags
...
ret ; return to caller
Neuron Assembly Language Reference 111
Zobrazit stránku 120
1 2 ... 116 117 118 119 120 121 122 123 124 125 126 ... 236 237

Komentáře k této Příručce

Žádné komentáře