Retour index

Appel de sous programme

Cas du 8051

Retour

L'appel d'un sous programme s'effectue à l'aide de l'instruction LCALL qui réalise un appel absolu. Le retour s'effectue par l'instruction RET.

Appel de sous programme

LCALL @s_prog

(SP) <- PC + 1

PCdestination <- @s_prog

Retour de sous programme

RET

PCdestination <- (SP)

Retour index

Retour