Join ExamsbookAnswer :
How would you obtain segment and offset addresses from a far address of a memory location?5
Q: How would you obtain segment and offset addresses from a far address of a memory location?
- Show AnswerHide Answer
- Workspace
Answer :
Explanation :
#include "dos.h" main() { Char far *scr = ( char far *) 0xB8000000; Char *seg, *off; Seg = (char *) FP_SEG ( scr ); Off = ( char *) FP_OFF ( scr ); }