S3C72G9 Samsung semiconductor, S3C72G9 Datasheet - Page 61

no-image

S3C72G9

Manufacturer Part Number
S3C72G9
Description
The S3C72G9 single-chip CMOS microcontroller has been designed for high performance using Samsungs newest 4-bit CPU core/ SAM47 (Samsung Arrangeable M
Manufacturer
Samsung semiconductor
Datasheet
 
 
CALL
Operation:
Description:
Example:
dst
ADR15
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.
The LCALL instruction can be used in the all range (0000H-7FFFH) while the CALL instruction can
be used in the only range (0000H-3FFFH).
ADR15
The stack pointer value is 00H and the label 'PLAY' is assigned to program memory location
5E3FH. Executing the instruction
LCALL
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
=
=
=
=
=
=
0
0
0
PLAY
0FAH
0H
EMB, ERB
2H
3H
0H
1H
5E3FH
Call direct in page (15 bits)
a7
1
0
PC14
PC11 – PC8
PC3 – PC0
PC7 – PC4
0
0
a14 a13 a12 a11 a10
a6
1
PC13
EMB
0
a5
0

Binary Code
Operation Summary
PC12
a4
ERB
1
0
a3
1
a2
0
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 S3C72G9