Home » Technical Questions » Programming

How would you obtain segment and offset addresses from a far address of a memory location?

Correct Answer: #include "dosh" main() { Char far *scr = ( char far *) 0xB8000000; Char *seg, *off; Seg = (char *) FP_SEG ( scr ); Off = ( char *) FP_OFF ( scr ); }

← Previous Question Next Question→

More Questions from Programming

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion