upd78f9211grt2-jjg-a ETC-unknow, upd78f9211grt2-jjg-a Datasheet - Page 41

no-image

upd78f9211grt2-jjg-a

Manufacturer Part Number
upd78f9211grt2-jjg-a
Description
8-bit Single-chip Microcontrollers
Manufacturer
ETC-unknow
Datasheet
3.3 Instruction Address Addressing
incremented (+1 for each byte) automatically according to the number of bytes of an instruction to be fetched each
time another instruction is executed.
information is set to the PC to branch by the following addressing (for details of each instruction, refer to 78K/0S
Series Instructions User’s Manual (U11047E)).
3.3.1 Relative addressing
An instruction address is determined by the program counter (PC) contents. The PC contents are normally
[Function]
[Illustration]
The value obtained by adding 8-bit immediate data (displacement value: jdisp8) of an instruction code to the start
address of the following instruction is transferred to the program counter (PC) to branch. The displacement
value is treated as signed two’s complement data (–128 to +127) and bit 7 becomes the sign bit. In other words,
the range of branch in relative addressing is between –128 and +127 of the start address of the following
instruction.
This function is carried out when the BR $addr16 instruction or a conditional branch instruction is executed.
PC
15
15
15
When S = 0,
When S = 1,
indicates that all bits are “0”.
indicates that all bits are “1”.
When a branch instruction is executed, the branch destination address
CHAPTER 3 CPU ARCHITECTURE
8
User’s Manual U16994EJ3V0UD
PC
+
S
7
6
jdisp8
0
0
0
... PC is the start address of
the next instruction of
a BR instruction.
41

Related parts for upd78f9211grt2-jjg-a