45205 Parallax Inc, 45205 Datasheet - Page 164

SX TECH BOARD

45205

Manufacturer Part Number
45205
Description
SX TECH BOARD
Manufacturer
Parallax Inc
Type
MCUr
Datasheet

Specifications of 45205

Contents
Board
For Use With/related Products
SX MCUs
For Use With
28825 - MINI SOUND PLAYER SOUNDPAL130-28029 - KIT PARTS SMART SENSORS
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
15 Appendix E: SX Data Sheet
15.2.16 Calling Across Pages
When it is necessary to call a subroutine that exists on a different page, you must set the page select bits
to point to the desired page before the call is executed. This can be done discretely using SETB and
CLRB instructions or by writing a value to the STATUS register. The SX offers a new single-cycle
instruction called PAGE that sets the page select bits for you. See “Dealing with Code Pages” in Chapter
7 for more information. NOTE: Using the @ symbol in the CALL instruction (CALL @label) will cause the
assembler to insert the PAGE instruction before your CALL, during assembly.
15.2.17 Returning from a subroutine
Subroutines are usually terminated with a return-type instruction. Before we discuss the different
return instructions, we should describe the operation of the stack.
Page 164 SX-Key/Blitz Development System Manual 2.0 Parallax, Inc.
11
7
7
11
11
10
6
6
10
10
5
9
5
9
9
Figure 33 - Calling Across Pages
0
8
8
Figure 32 - The Call Instruction
0
8
8
8
7
7
7
7
7
PAGE label
6
6
6
6
6
5
5
5
5
5
CALL label
CALL label
4
4
4
4
4
3
3
3
3
3
2
2
2
2
2
1
1
1
1
1
0
0
0
0
0

Related parts for 45205