Zilog Z08470 Manuel d'utilisateur Page 294

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 326
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 293
Z80 Instruction Set UM008007-0715
282
Z80 CPU
User Manual
RET
Operation
pCL (sp), pCH (sp+1)
Op Code
RET
Operands
None.
Description
The byte at the memory location specified by the contents of the Stack Pointer (SP) Regis-
ter pair is moved to the low-order eight bits of the Program Counter (PC). The SP is now
incremented and the byte at the memory location specified by the new contents of this
instruction is fetched from the memory location specified by the PC. This instruction is
normally used to return to the main line program at the completion of a routine entered by
a CALL instruction.
Condition Bits Affected
None.
Example
The Program Counter contains 3535h, the Stack Pointer contains 2000h, memory loca-
tion
2000h contains B5h, and memory location 2001h contains 18h. Upon the execution
of a RET instruction, the Stack Pointer contains
2002h and the Program Counter contains
18B5h, thereby pointing to the address of the next program op code to be fetched.
M Cycles T States 4 MHz E.T.
3 10 (4, 3, 3) 2.50
11 0 01001
C9
Vue de la page 293
1 2 ... 289 290 291 292 293 294 295 296 297 298 299 ... 325 326

Commentaires sur ces manuels

Pas de commentaire