Mail Archives: djgpp/1995/07/11/15:15:25
I have a question about which is a faster way to write into
physical (real mode) memory:
Is it faster to use dosmemput() or movedata() ?
additionally the selectors used in in movedata(), are they a constant?
ie can I calcualte what the selectors are and never recalculate thme?
like try:
unsigned VID_ADDR=0xA0000;
unsigned src_selector,dst_selector;
unsigned char *buff;
Init()
{
buff=malloc(320*200);
if (buf==NULL) exit(0);
src_selector=_go32_my_ds();
dst_selector=_go_32_conventionl_memory();
// I may have the wrong
function on whow to get the conventional memory selector.
}
Refresh()
{
movedata(dst_selector,VID_ADDR,
src_selector,buff,
320*200);
}
or is there a faster way than movedata() or dosmemput() ?
Sincerley, Kevin Rogovin
- Raw text -