S3C72G9 Samsung semiconductor, S3C72G9 Datasheet - Page 59

no-image

S3C72G9

Manufacturer Part Number
S3C72G9
Description
The S3C72G9 single-chip CMOS microcontroller has been designed for high performance using Samsungs newest 4-bit CPU core/ SAM47 (Samsung Arrangeable M
Manufacturer
Samsung semiconductor
Datasheet
 

JR
Operation:
Description:
dst
#im
@WX
@EA
JR causes the relative address to be added to the program counter and passes control to the
instruction whose address is now in the PC. The range of the relative address is current PC - 15 to
current PC + 16. The destination address for this jump is specified to the assembler by a label, an
actual address, or by immediate data using a plus sign (+) or a minus sign (-).
For immediate addressing, the (+) range is from 2 to 16 and the (-) range is from -1 to -15. If a 0,
1, or any other number that is outside these ranges are used, the assembler interprets it as an
error.
For JR @WX and JR @EA branch relative instructions, the valid range for the relative address is
0H-0FFH. The destination address for these jumps can be specified to the assembler by a label
that lies anywhere within the current 256-byte block.
Normally, the 'JR @WX' and 'JR @EA' instructions jump to the address in the page in which the
instruction is located. However, if the first byte of the instruction code is located at address xxFEH
or xxFFH, the instruction will jump to the next page.
#im
@WX
@EA

Operand
Operand

JR #im
Branch to relative immediate address
Branch relative to contents of WX register
Branch relative to contents of EA
1
0
1
0
0
0
1
1
1
1
0
0

0
1
0
1
0
0
Binary Code
First Byte
Operation Summary
1
0
1
0
1
0
a3
a3
1
0
1
0
a2
a2
1
1
0
1
a1
a1
0
0
0
0
a0
a0
1
0
1
0
PC14-0
PC14-0
PC14-0
PC
PC
PC+2 to PC+16
PC-1 to PC-15
Operation Notation
ADR (PC-15 to PC+16)
PC14-8 + (EA)
PC14-8 + (WX)
   
Condition
Bytes
1
2
2
Cycles
2
3
3


Related parts for S3C72G9