45111 Parallax Inc, 45111 Datasheet - Page 164

MANUAL FOR SX-KEY/BLITZ VER. 2.0

45111

Manufacturer Part Number
45111
Description
MANUAL FOR SX-KEY/BLITZ VER. 2.0
Manufacturer
Parallax Inc
Datasheet

Specifications of 45111

Accessory Type
Manual
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
Parallax microcontroller
For Use With
70002PAR - GUIDE PROG THE SX MICRO -DAUBACH
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-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 45111