www.DataSheet4U.com
CHAPTER 5 CPU ARCHITECTURE
111
5.3 Instruction Address Addressing
An instruction address is determined by program counter (PC) contents. The PC contents are normally incremented
(+1 for each byte) automatically according to the number of bytes of an instruction to be fetched each time another
instruction is executed. When a branch instruction is executed, however, the branch destination information is set
to the PC and branched by the following addressing (For details of instructions, refer to 78K/0 Series User’s Manual,
Instructions (U12326E).
5.3.1 Relative addressing
[Function]
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) and branched. The displacement value
is treated as signed two’s complement data (–128 to +127) and bit 7 becomes a 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.
[Illustration]
PC
15
0
α
15
0
PC
15
0
S
8
7
6
+
jdisp8
When S = 0, all bits of
α
are 0.
When S = 1, all bits of
α
are 1.
PC indicates the start address of the instruction
after the BR instruction
Summary of Contents for 78014Y Series
Page 2: ...www DataSheet4U com 2 MEMO...
Page 8: ...www DataSheet4U com 8 MEMO...
Page 22: ...www DataSheet4U com 22 MEMO...
Page 30: ...www DataSheet4U com 30 MEMO...
Page 34: ...www DataSheet4U com 34 MEMO...
Page 62: ...www DataSheet4U com CHAPTER 2 OUTLINE PD78014Y Subseries 62 MEMO...
Page 78: ...www DataSheet4U com CHAPTER 3 PIN FUNCTION PD78014 Subseries 78 MEMO...
Page 94: ...www DataSheet4U com CHAPTER 4 PIN FUNCTION PD78014Y Subseries 94 MEMO...
Page 170: ...www DataSheet4U com CHAPTER 7 CLOCK GENERATOR 170 MEMO...
Page 222: ...www DataSheet4U com CHAPTER 9 8 BIT TIMER EVENT COUNTER 222 MEMO...
Page 230: ...www DataSheet4U com CHAPTER 10 WATCH TIMER 230 MEMO...
Page 262: ...www DataSheet4U com CHAPTER 14 A D CONVERTER 262 MEMO...
Page 318: ...www DataSheet4U com CHAPTER 15 SERIAL INTERFACE CHANNEL 0 PD78014 Subseries 318 MEMO...
Page 408: ...www DataSheet4U com CHAPTER 16 SERIAL INTERFACE CHANNEL 0 PD78014Y Subseries 408 MEMO...
Page 446: ...www DataSheet4U com CHAPTER 17 SERIAL INTERFACE CHANNEL 1 446 MEMO...
Page 472: ...www DataSheet4U com CHAPTER 18 INTERRUPT FUNCTIONS AND TEST FUNCTION 472 MEMO...
Page 502: ...www DataSheet4U com CHAPTER 22 PD78P014 78P014Y 502 MEMO...
Page 520: ...www DataSheet4U com CHAPTER 23 INSTRUCTION SET 520 MEMO...