movedata用 法: void movedata(int segsrc, int offsrc, int segdest,
int offdest, unsigned numbytes);
基本介紹
- 中文名:movedata
- 功 能:拷貝位元組
- 用 法:void movedata
- 程式例:#include等
函式名: 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);
}