45181 Parallax Inc, 45181 Datasheet - Page 164

SX TECH TOOL KIT NO POWER

45181

Manufacturer Part Number
45181
Description
SX TECH TOOL KIT NO POWER
Manufacturer
Parallax Inc
Series
SXr
Type
Microcontrollerr
Datasheet

Specifications of 45181

Contents
SX Book, SX Key, SX Tech Board, Samples, Resonators, Cable and Manual
Product
Microcontroller Basic Stamps
Operating Supply Voltage
5 V
For Use With/related Products
SX MCUs
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 45181