Samsung 8-Bit Manuale Utente Pagina 351

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 462
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 350
S3C9228/P9228 SAM88RCRI INSTRUCTION SET
6-35
POP Pop From Stack
POP dst
Operation: dst ¨ @SP
SP ¨ SP + 1
The contents of the location addressed by the stack pointer are loaded into the destination. The
stack pointer is then incremented by one.
Flags: No flags affected.
Format:
Bytes Cycles Opcode
(Hex)
Addr Mode
dst
opc dst 2 8 50 R
8 51 IR
Examples: Given: Register 00H = 01H, register 01H = 1BH, SP (0D9H) = 0BBH, and stack register
0BBH = 55H:
POP 00H Register 00H = 55H, SP = 0BCH
POP @00H Register 00H = 01H, register 01H = 55H, SP = 0BCH
In the first example, general register 00H contains the value 01H. The statement "POP 00H"
loads the contents of location 0BBH (55H) into destination register 00H and then increments the
stack pointer by one. Register 00H then contains the value 55H and the SP points to location
0BCH.
Vedere la pagina 350
1 2 ... 346 347 348 349 350 351 352 353 354 355 356 ... 461 462

Commenti su questo manuale

Nessun commento