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

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
CALLS —
CALLS
Description:
Example:
5-46
Operation:
dst
The CALLS instruction unconditionally calls a subroutine located at the indicated address. The
instruction increments the PC twice to obtain the address of the following instruction. Then, it
pushes the result onto the stack, decrementing the stack pointer six times. The higher bits of the
PC, with the exception of the lower 11 bits, are cleared. The CALLS instruction can be used in the
all range (000H-3FFFH), but the subroutine must therefore be located within the 2-Kbyte block
(0000H–07FFH) of program memory.
The stack pointer value is 00H and the label 'PLAY' is assigned to program memory location 0345H.
Executing the instruction
CALLS
at location 0123H will generate the following values:
SP
0FFH
0FEH
0FDH
0FCH
0FBH
0FAH
PC
Data is written to stack locations 0FFH–0FAH as follows:
0FAH
0FBH
0FCH
0FDH
0FEH
0FFH
Operand
Operand
Call Procedure (Short)
ADR
ADR
=
=
=
=
=
=
=
=
PLAY
0
0
0
0FAH
0H
EMB, ERB
2H
5H
0H
1H
0345H
a7
1
PC11 – PC8
PC3 – PC0
PC7 – PC4
0
0
PC14–PC12
a6
1
EMB
0
a5
1
Call direct in page (11 bits)
Binary Code
Operation Summary
a4
ERB
0
0
a3
1
a10
a2
S3C72M5/C72M7/C72M9/P72M9 (Preliminary Spec)
a9
a1
a8
a0
[(SP–1) (SP–2)]
[(SP–3) (SP–4)]
[(SP–5) (SP–6)]
Operation Notation
Bytes
2
EMB, ERB
PC7–0
PC14–8
Cycles
3

Related parts for s3c72m9