Echelon Neuron Manuale Utente Pagina 121

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 237
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 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
Vedere la pagina 120
1 2 ... 116 117 118 119 120 121 122 123 124 125 126 ... 236 237

Commenti su questo manuale

Nessun commento