hwfe@ur-tut (Harlan Feinstein) (08/03/88)
How does one change the border color on a CGA screen? Anyone know? I've looked through Norton's Programmers Guide without finding the answer. Harlan hwfe@tut.cc.rochester.edu
bobmon@iuvax.cs.indiana.edu (RAMontante) (08/04/88)
The Heath/Zenith Users Group magazine, REMark, gives an assembler program that controls the border color in its July 1988 issue. (I'd type it in, but it's about four pages long and I'm tired.) -- bob,mon (bobmon@iuvax.cs.indiana.edu) "`This must be deep' means `I can recognize all these words individually, but dam' if I can make any sense out of the order in which they currently appear....'" - Gil Scott Herron
feg@clyde.ATT.COM (Forrest Gehrke) (08/08/88)
In article <11297@iuvax.cs.indiana.edu>, bobmon@iuvax.cs.indiana.edu (RAMontante) writes: > The Heath/Zenith Users Group magazine, REMark, gives an assembler > program that controls the border color in its July 1988 issue. (I'd > type it in, but it's about four pages long and I'm tired.) > -- For IBM and clones, using CGA, 4 or 5 instructions will produce border color control of the screen. By themselves it takes 5 (I haven't figured out why the NOP is needed). mov al,08 ; This value controls color. mov dx,03d9 out dx,al int 20h nop 08 will give you a grey border. 04 will make it red. The colors are as found in the msdos manual under COLOR(TEXT) in the BASIC instructions. Forrest Gehrke
bobmon@iuvax.cs.indiana.edu (RAMontante) (08/09/88)
feg@clyde.ATT.COM (Forrest Gehrke) writes:
+ I write:
+> The Heath/Zenith Users Group magazine, REMark, gives [a 4-page] assembler
+> program that controls the border color in its July 1988 issue.
+
+For IBM and clones, using CGA, 4 or 5 instructions will produce
+border color control of the screen.
+
+mov al,08 ; This value controls color.
+mov dx,03d9
+out dx,al
+int 20h
+nop
Sounds reasonable. The REMark program lets one scroll through all the
choices and stop when a nice color shows up. As usual, the user interface
dominates the actual intent of the program.
--
-- bob,mon (bobmon@iuvax.cs.indiana.edu)
-- "Aristotle was not Belgian..." - Wanda