snel
Newbie level 5
Hi all,
To introduce myself: I am just a fresher in the field of electronics with computer background
Presently I am studying about 8051 series from Mazidi.
But i am stuck at the concept of DB directive.
Below is the example snippet from the book at which i am stuck
<<
Count EQU 30
... ...
MOV R4,#COUNT ;R4=1EH
MOV DPTR,#MYDATA ;DPTR=200H
ORG 200H
MYDATA: DB “America”
>>
In the above code, the comment section shows the value. Like value of R4 would be 30 or 1E .
Similarly the value of DPTR would be 200
Now my problem is how could the value of DPTR be 200 when MYDATA points to "America" below ?
Since "America" signifies a value other than 200 in either HEX or any other conversion.
Would really appreciate if someone could let me know how come the value of DPTR comes out to 200.
To introduce myself: I am just a fresher in the field of electronics with computer background
Presently I am studying about 8051 series from Mazidi.
But i am stuck at the concept of DB directive.
Below is the example snippet from the book at which i am stuck
<<
Count EQU 30
... ...
MOV R4,#COUNT ;R4=1EH
MOV DPTR,#MYDATA ;DPTR=200H
ORG 200H
MYDATA: DB “America”
>>
In the above code, the comment section shows the value. Like value of R4 would be 30 or 1E .
Similarly the value of DPTR would be 200
Now my problem is how could the value of DPTR be 200 when MYDATA points to "America" below ?
Since "America" signifies a value other than 200 in either HEX or any other conversion.
Would really appreciate if someone could let me know how come the value of DPTR comes out to 200.