| www.delorie.com/djgpp/doc/libc-2.01/libc_360.html | search |
#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.
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.
| prev next webmaster | delorie software privacy |
| Copyright © 1997 | Updated Apr 1997 |