Keil Logo Arm Logo

A166 User's Guide

DBPTR Assembler Statement

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

The DBPTR statement defines a bit pointer to the bit or bits (of a bit-addressable word) specified in the expression. The pointer created consists of three words. The first word contains the bit position (0-15). The second word contains the page-relative offset (0000h-0DFFFh) of the referenced symbol. The third word contains the page number (which is always 3) of the referenced symbol.

See Also

DPPTR, DSPTR

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

arm-logo-small

Keil logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.