Go to the first, previous, next, last section, table of contents.


_go32_conventional_mem_selector

Syntax

#include <go32.h>

u_short _go32_conventional_mem_selector();

Description

This function returns a selector which has a physical base address corresponding to the beginning of conventional memory. This selector can be used as a parameter to movedata (see section movedata) to manipulate memory in the conventional address space.

Return Value

The selector.

Portability

not ANSI, not POSIX

Example

short blank_row_buf[ScreenCols()];
/* scroll screen */
movedata(_go32_conventional_mem_selector(), 0xb8000 + ScreenCols()*2,
         _go32_conventional_mem_selector(), 0xb8000,
         ScreenCols() * (ScreenRows()-1) * 2);
/* fill last row */
movedata(_go32_my_ds, (int)blank_row_buf,
         _go32_conventional_mem_selector(),
            0xb8000 + ScreenCols()*(ScreenRows()-1)*2,
          ScreenCols() * 2);


Go to the first, previous, next, last section, table of contents.