Mail Archives: djgpp/2000/04/09/02:28:06
On Fri, 7 Apr 2000, batchex wrote:
> >What's wrong with the method suggested by the FAQ, anyway?
> >
> Umm, I just looking for a compromise, between memory protection
> and near pointers. Because I'll do much ASM in the project,
> using far pointers can cause much pain for me, all that pushing
> & popping segment pointers.
Sorry, I don't understand: what pushing and popping? All you need to
access a far pointer in assembly is to load FS with the _dos_ds
selector (once) and then use the fs: segment override.
> And I think I left that behind when moving from real mode to
> protected mode programming....
You can leave that behind if you access the ``normal'' memory mapped
into your address space. Accessing devices mapped into specific
absolute addresses is not something ``normal'' programs do.
- Raw text -