movedata

movedata用 法: void movedata(int segsrc, int offsrc, int segdest, int offdest, unsigned numbytes);

函式名: movedata

功 能: 拷貝位元組

程式例:

#include <mem.h>

#define MONO_BASE 0xB000

/* saves the contents of the monochrome screen in buffer */

void save_mono_screen(char near *buffer)

{

movedata(MONO_BASE, 0, _DS, (unsigned)buffer, 80*25*2);

}

int main(void)

{

char buf[80*25*2];

save_mono_screen(buf);

}

相關詞條

相關搜尋

熱門詞條

聯絡我們