wozniak@utkux1.utk.edu (Bryon Lape) (01/18/90)
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. -bryon-
rkl@cbnewsh.ATT.COM (kevin.laux) (01/20/90)
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