<br><font size=2 face="sans-serif">The following bit of code is something I use in my go32v2 (DOS) programs to save/restore the contents of the screen to/from memory. It works great except that it takes the colors as they appear on the screen (which is okay most of the time). But is there a way I can store/reset the color attributes either directly on the screen or in the array after I've saved the screen? Or perhaps there's another mem[] region I can grab and modify the colors their instead?</font>
<br>
<br><font size=2 face="sans-serif">TIA...</font>
<br>
<br><font size=2 face="sans-serif">Jim</font>
<br>
<br>
<br><font size=2 face="sans-serif">// for screens up to 132x60<br>
const<br>
BUF_SIZE = 7920;</font>
<br>
<br><font size=2 face="sans-serif">// array to hold screen contents<br>
var<br>
ScreenBuffer : array [1..BUF_SIZE] of byte;</font>
<br>
<br><font size=2 face="sans-serif">// save the entire screen to memory<br>
move (mem [$B8000],ScreenBuffer,BUF_SIZE);</font>
<br>
<br><font size=2 face="sans-serif">// restore the screen from memory<br>
move (ScreenBuffer,mem [$B8000],BUF_SIZE);</font>
<br>