pointing to a 2 byte memory address using two 8 bit register

Status
Not open for further replies.

anasfuad33eng

Member level 1
Joined
Mar 21, 2013
Messages
32
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Visit site
Activity points
1,498
hi,all i face problem in my program of 8051 mcu with the following restrictions :1-my program must start at address 2000h(2 byte)
2-dptr register used for other purposes so,i cant use it to point to the memory address

my program include mov dptr,#porta
movx a,@dptr ;read digital data from porta
now i want to compare accmulator with the values stored in memory locations from 2050h to 2060 h how but the problem i dont have another register (16 bit) in 8051 can i point to these memory locations using 2 eight bit register ? how pizzzzzz help ,suggest,idea8-O
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…