Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!att!cbnewsh!rkl From: rkl@cbnewsh.ATT.COM (kevin.laux) Newsgroups: comp.lang.c Subject: Re: EGA Saving Message-ID: <7512@cbnewsh.ATT.COM> Date: 19 Jan 90 16:42:27 GMT References: <1598@utkcs2.cs.utk.edu> Distribution: usa Organization: AT&T Bell Laboratories Lines: 14 In article <1598@utkcs2.cs.utk.edu>, wozniak@utkux1.utk.edu (Bryon Lape) writes: | | I need a routine to save a screen in EGA mode 13 to disk. This | is the 640X350 screen. This would be somewhat easy if I was on page 0, | but I am not. What I need is something like Basic's BSAVE and BLOAD, | yes I do need to read the image in. I thought about using _dos_write() | function (QUick C 2.0), but am not sure of the starting far pointer. | Ega starts at A000:0000. Try using the _putimage(), _getimage(), and _imagesize() routines from the MSC 5.1 compiler. Works fine and you specify coordinates instead of memory addresses (0,0 is the upper left hand corner). --rkl