Lods byte ptr ds:[esi] ;i know that it loads a byte that is a pointer my question is " is the pointer ds with esi as an offset or is it the other way around or am i just plain wrong" ?
avarionist
1
Junior Poster in Training
Recommended Answers
Jump to Postesi just contains an address that is within the ds segment. ds is not a pointer -- it contains the address of the data segment. Sometimes you might even see cs:[esi] or even ss:[esi] in which case esi is pointer to somewhere in the code segment or stack segment, respectively.
All 4 Replies
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
avarionist
1
Junior Poster in Training
wildgoose
420
Practically a Posting Shark
avarionist
1
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.