Path: utzoo!utgpu!water!watmath!clyde!feg From: feg@clyde.ATT.COM (Forrest Gehrke) Newsgroups: comp.sys.ibm.pc Subject: Re: Screen Border Summary: 4 or 5 instructions does it Message-ID: <31013@clyde.ATT.COM> Date: 8 Aug 88 14:16:14 GMT References: <2359@ur-tut.UUCP> <11297@iuvax.cs.indiana.edu> Organization: AT&T Bell Labs, Whippany NJ Lines: 23 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