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