Echelon Neuron Instrukcja Użytkownika Strona 121

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 237
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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
Przeglądanie stron 120
1 2 ... 116 117 118 119 120 121 122 123 124 125 126 ... 236 237

Komentarze do niniejszej Instrukcji

Brak uwag