EGA Saving
kevin.laux
rkl at cbnewsh.ATT.COM
Sat Jan 20 03:42:27 AEST 1990
In article <1598 at utkcs2.cs.utk.edu>, wozniak at 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
More information about the Comp.lang.c
mailing list