New answers tagged c
6
Compilers targeting DOS typically provide macros to manipulate the segment and offset of far pointers. FP_SEG(pointer) provides access to the segment portion, FP_OFF(pointer) to the offset. It's also possible that there's a MK_FP(segment, offset) or FP_CONSTRUCT(segment, offset) macro to combine segment and offset into a pointer.
This discussion in comp.os....
Top 50 recent answers are included
Related Tags
c × 56compilers × 12
history × 11
ms-dos × 10
programming × 10
assembly × 7
z80 × 5
memory × 4
zx-spectrum × 4
unix × 3
pdp-11 × 3
cc65 × 3
hardware × 2
commodore-64 × 2
ibm-pc × 2
apple-macintosh × 2
memory-layout × 2
mainframe × 2
software-development × 2
floating-point × 2
pascal × 2
sgi × 2
16-bit × 2
sdcc × 2
amiga × 1