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

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
LCALL —
CALL
Operation:
Description:
Example:
5-60
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 32-Kbyte program memory address space.
Only LCALL instruction can be used when a subroutine call is required at higher address 3FFFH
(4000H–7FFFH) of the program memory while CALL and CALLS instructions can be used only at
address 0000H–3FFFH. The LCALL instruction also can used be address 0000H–3FFFH.
The stack pointer value is 00H and the label 'PLAY' is assigned to program memory location
5E3FH. Executing the instruction
LCALL PLAY
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
Long Call Procedure
ADR
ADR
=
=
=
=
=
=
=
=
0
0
0
0FAH
0H
EMB, ERB
2H
3H
0H
1H
5E3FH
a7
1
0
PC14
PC11 – PC8
PC3 – PC0
PC7 – PC4
0
0
a14 a13
a6
1
PC13
EMB
0
a5
0
Call direct in page (15 bits)
Binary Code
Operation Summary
a12
PC12
a4
ERB
1
0
a11 a10
a3
1
a2
0
S3C72M5/C72M7/C72M9/P72M9 (Preliminary Spec)
a9
a1
1
a8
a0
0
[(SP–1) (SP–2)]
[(SP–3) (SP–4)]
[(SP–5) (SP–6)]
Operation Notation
Bytes
3
EMB, ERB
PC7–0
PC14–8
Cycles
4

Related parts for s3c72m9