29.01.2013 Views

uPD780065 Subseries PUM - Renesas Electronics

uPD780065 Subseries PUM - Renesas Electronics

uPD780065 Subseries PUM - Renesas Electronics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3.4.8 Based indexed addressing<br />

70<br />

CHAPTER 3 CPU ARCHITECTURE<br />

[Function]<br />

The B or C register contents specified in an instruction are added to the contents of the base register, that is,<br />

the HL register pair in an instruction word of the register bank specified with the register bank select flag (RBS0<br />

and RBS1) and the sum is used to address the memory.<br />

Addition is performed by expanding the offset data as a positive number to 16 bits. A carry from the 16th bit<br />

is ignored. This addressing can be carried out for all the memory spaces.<br />

[Operand format]<br />

[Description example]<br />

In the case of MOV A, [HL + B]<br />

3.4.9 Stack addressing<br />

Identifier Description<br />

— [HL + B], [HL + C]<br />

Operation code 1 0 1 0 1 0 1 1<br />

[Function]<br />

The stack area is indirectly addressed with the stack pointer (SP) contents.<br />

This addressing method is automatically employed when the PUSH, POP, subroutine call and return instructions<br />

are executed or the register is saved/reset upon generation of an interrupt request.<br />

Stack addressing enables to address the internal high-speed RAM area only.<br />

[Description example]<br />

In the case of PUSH DE<br />

Operation code 1 0 1 1 0 1 0 1<br />

Preliminary User’s Manual U13420EJ2V0UM00

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!