• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What is a far pointer? Where we use it?
#1

Advertise Here

A far pointer is a four byte pointer that used to access the main memory of the system. It can access the code and data segment, just by modifying the offset you can modify the address.
Reply
#2
Far pointers use segment info and an offset to point across segments. So, to use them, DS or CS must be changed to the specified value, the memory will be dereferenced and then the original value of DS/CS restored. Note that pointer arithmetic on them doesn't modify the segment portion of the pointer, so overflowing the offset will just wrap it around
Reply
#3
A far pointer is a pointer which includes a segment selector, making it possible to point to addresses outside of the default segment.A far pointer is typically 32 bit that can access memory outside current segment.  To use this, compiler allocates a
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  What is "this" pointer? beingchinmay 1 241 12-21-2016, 01:24 AM
Last Post: rosestorm
  Pointer Comparisons beingchinmay 0 139 09-15-2016, 05:25 AM
Last Post: beingchinmay

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


Webmasterbabble.com, © 2012-2017 .