delorie.com/djgpp/doc/libc/libc_429.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

_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

ANSI/ISO C No
POSIX No

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);


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004