home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.pascal
- Path: sparky!uunet!mcsun!sunic!ericom!news
- From: (Jim)
- Subject: Re: Saving screens in Turbo Pascal
- Message-ID: <1992Nov9.104336.29924@ericsson.se>
- Sender: news@ericsson.se
- Nntp-Posting-Host: etlxd10h.ericsson.se
- Organization: Ericsson
- References: <1ddf63INNfe5@clover.csv.warwick.ac.uk>
- Date: Mon, 9 Nov 1992 10:43:36 GMT
- Lines: 26
-
- Hi Michael.
-
- The easiest way I find is to read the CGA memory directly as if it was a buffer pointed
- to by a pointer and blockwrite it into an untyped file. Here is an outline for VGA
- (I think CGA is B800:0000??).
-
- var vgamem : byte absolute $A000:0000;
- vgaptr : pointer;
- myfile : file;
- numrec : integer;
-
- procedure savescreen;
- begin
- vgaptr:=@vgamem;
- assign(myfile,'NAME.XXX');
- rewrite(myfile,1);
- numrec:=blockwrite(myfile,vgaptr^,64000); <-You might want to check this syntax
- close(myfile); as I've written this from memory.
- end;
-
- That's as much as I can remember. Anyone want to elaborate or debug??
-
- Good luck, Jim.
-
-
-
-