Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!wuarchive!udel!haven!adm!news From: CDCKAB%EMUVM1.BITNET@cunyvm.cuny.edu ( Karl Brendel) Newsgroups: comp.lang.pascal Subject: (R)Re: Graphic-screen to disk Message-ID: <25074@adm.brl.mil> Date: 20 Nov 90 22:40:00 GMT Sender: news@adm.brl.mil Lines: 36 In article <11518@j.cc.purdue.edu>, Albert Zhou writes: [deleted] >Actually neither is wrong. Please run the following program. I am >suprised to see that both addresses store the same image on my CGA. >Please let me know if it works the same on your machine. > > >uses graph; >type > buftype1 = array[1..8000] of byte; > buftype2 = array[1..16000] of byte; [deleted] > MyBuffer1 := x1; > MyBuffer2 :=x2; [deleted] > AnotherBuffer := y; [deleted] I'm inclined to believe that either you don't have a "true" CGA, or your monitor doesn't display the image clearly, or you are being deceived by the simplicity of your displayed pattern. When I run your program (which, admittedly, I am doing on a VGA, using the CGA driver), it is apparent that not all of the image is restored at the assignments to MyBuffer1 & MyBuffer2, but it is at the assignment to AnotherBuffer. +-------------------------------------------------------------------------+ | Karl Brendel Centers for Disease Control | | Internet: CDCKAB@EMUVM1.BITNET Epidemiology Program Office | | Bitnet: CDCKAB@EMUVM1 Atlanta, GA, USA | | ILink/RIME: KARL BRENDEL phone 404/639-2709 | | CIS : 73307,3101 fts 236-2709 | | GEnie: K.BRENDEL Home of Epi Info 5.0 | +-------------------------------------------------------------------------+