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

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
S3C72M5/C72M7/C72M9/P72M9 (Preliminary Spec)
JR —
JR
Examples:
Jump Relative (Very Short)
(Continued)
1. A short form for a relative jump to label 'KK' is the instruction
2. In the following instruction sequence, if the instruction 'LD WX, #02H' were to be executed in
3. Here is another example:
where 'KK' must be within the allowed range of current PC–15 to current PC+16. The JR
instruction has in this case the effect of an unconditional JP instruction.
place of 'LD WX,#00H', the program would jump to 1002H and 'JPS BBB' would be executed.
If 'LD EA,#04H' were to be executed, the jump would be to1004H and 'JPS CCC' would be
executed.
JR KK
XXX
If 'LD EA,#01H' were to be executed in place of 'LD EA,#00H', the program would jump to
1001H and address 30H would contain the value 1H. If 'LD EA,#02H' were to be executed, the
jump would be to 1002H and address 30H would contain the value 2H.
ORG
JPS
JPS
JPS
JPS
LD
LD
ADS
JR
ORG
LD
LD
LD
LD
LD
JPS
LD
JR
1000H
AAA
BBB
CCC
DDD
WX,#00H
EA,WX
WX,EA
@WX
1100H
A,#0H
A,#1H
A,#2H
A,#3H
30H,A
YYY
EA,#00H
@EA
; WX
; WX
; Current PC13–8 (10H) + WX (00H) = 1000H
; Jump to address 1000H and execute JPS AAA
; Address 30H
; EA
; Jump to address 1100H
; Address 30H
00H
00H
(WX) + (WX)
00H
A
SAM47 INSTRUCTION SET
5-59

Related parts for s3c72m9