A166 User's Guide

DSPTR Assembler Statement

Arguments
<[>label<[>:<]><]> DSPTR expression <[>, expression ...<]>
Description

The DSPTR statement defines a segment pointer to the label or procedure (in a code section) specified in the expression. The pointer created consists of two words. The first word contains the segment-relative offset (0-65535) of the referenced symbol. The second word contains the segment number (0-255) of the 64K segment of which the referenced symbol is a member.

See Also

DBPTR, DPPTR

Example
                       1     EXTERN  NPROC : NEAR
                       2
                       3     BSEC    SECTION BIT
0000                   4       BT1   DBIT
0001                   5       BT2   DBIT
                       6     BSEC    ENDS
                       7
                       8     DSEC    SECTION DATA
0000 00000000 R        9       bp1   DBPTR   BT1     ; Bit pointer ref. BT1
0000 0300
0006 00000000 R       10       bp2   DBPTR   BT2     ; Bit pointer ref. BT2
0006 0300
000C 00000000 R       11       pd1   DPPTR   bp1     ; Page pointer
0010 00000000 E       12       cp1   DSPTR   NPROC   ; Segment pointer
                      13     DSEC    ENDS
                      14
                      15 END