Q:
How would you obtain segment and offset addresses from a far address of a memory location?
Answer
#include "dos.h"
main()
{
Char far *scr = ( char far *) 0xB8000000;
Char *seg, *off;
Seg = (char *) FP_SEG ( scr );
Off = ( char *) FP_OFF ( scr );
}
View answer
Workspace
Report Error
Discuss