Echelon Neuron Bedienungsanleitung Seite 121

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 237
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 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
Seitenansicht 120
1 2 ... 116 117 118 119 120 121 122 123 124 125 126 ... 236 237

Kommentare zu diesen Handbüchern

Keine Kommentare