| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
#include <go32.h> u_short _go32_conventional_mem_selector(); |
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.
The selector.
| ANSI/ISO C | No |
| POSIX | No |
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);
|