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

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)
CALL —
CALL
Operation:
Description:
Example:
The stack pointer value is 00H and the label 'PLAY' is assigned to program memory location
0E3FH. Executing the instruction
CALL
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
dst
CALL calls a subroutine located at the destination address. The instruction adds three to the
program counter to generate the return address and then pushes the result onto the stack,
decrementing the stack pointer by six. The EMB and ERB are also pushed to the stack. Program
execution continues with the instruction at this address. The subroutine may therefore begin
anywhere in the full 16-Kbyte program memory address space.
Call Procedure
Operand
Operand
ADR
ADR
=
=
=
=
=
=
=
0H
EMB, ERB
2H
3H
0H
1H
=
PLAY
0
0
0
a7
1
0
PC11 – PC8
PC3 – PC0
PC7 – PC4
0
0
PC14–PC12
a6
1
1
EMB
0
a13
a5
0
Call direct in page (14 bits)
Binary Code
Operation Summary
a12
ERB
a4
1
0
0FAH
0E3FH
a11 a10
a3
1
a2
0
a9
a1
1
a8
a0
1
[(SP–1) (SP–2)]
[(SP–3) (SP–4)]
[(SP–5) (SP–6)]
Operation Notation
SAM47 INSTRUCTION SET
Bytes
3
EMB, ERB
PC7–0
PC14–8
Cycles
4
5-45

Related parts for s3c72m9