数据指针(DPTR)是单片机中一个功能比较特殊的寄存器,片外RAM寻址用的地址寄存器(间接寻址)可以将外部RAM中地址的内容传送到内部RAM的地址所指向的内容中。
这两个数据指针之间,有4个字节的间隔。
也就是说,它会在对象销毁时删除数据指针。
That is, it will delete the Pointers of data at the object destruction.
数据指针值无效。
As we all know, this only works if there is a pointee, which kind of gets back to rule number one.
众所周知,只有当有指针数据时,这个才起作用,这有点像第一条规则。
Instead if we want this pointer to represent the address of something in as much as it points at that address let's just draw an arrow.
如果我们想要让这个指针表示,数据的地址,它指向的地址,我用一个箭头表示。
Number three, pointer assignment, takes one pointer and changes it to point to the same pointee as another pointer so after the assignment the two pointers will point to the same pointee.
第三条,指针赋值,使一个指针,指向另外一个指针所指向的数据,赋值过后,两个指针会指向,同样的数据。
应用推荐