s3c72m9 Samsung Semiconductor, Inc., s3c72m9 Datasheet - Page 162

no-image

s3c72m9

Manufacturer Part Number
s3c72m9
Description
The S3c72m5/s3c72m7/s3c72m9 Single-chip Cmos Microcontroller Has Been Designed For High Performance Using Samsung S
Manufacturer
Samsung Semiconductor, Inc.
Datasheet
SAM47 INSTRUCTION SET
JR —
JR
Operation:
Description:
5-58
Jump Relative (Very Short)
dst
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.
Operand
*
Operand
@WX
@EA
@WX
JR #im
#im
@EA
#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
1
0
a1
a1
0
0
0
0
S3C72M5/C72M7/C72M9/P72M9 (Preliminary Spec)
a0 PC
a0 PC
1
0
1
0
PC14–0
PC14–0
PC14–0
PC+2 to PC+16
PC–1 to PC–15
Operation Notation
ADR (PC–15 to PC+16)
PC14–8 + (WX)
PC14–8 + (EA)
Condition
Bytes
1
2
2
Cycles
2
3
3

Related parts for s3c72m9