Mail Archives: djgpp/2000/06/14/18:45:24
Hi !
When I was into colored consoles I used some replacements for the 'cls' -
command (e.g. 'clb' for white on blue, that is clb.com, a tiny com-file
assembled with nasm), here's the code :
(works on the normal 25/80 - screen, also with WIN9x)
;NASM-IDE ASM Assistant Assembler Project File
[BITS 16] ;Set code generation to 16 bit mode
[ORG 0x0100] ;Set code start address to 0100h
[SEGMENT .text]
mov ax, 0600h ;AH=06: function to scroll up, AL=0: blank window
mov cx, 0 ;upper left corner (0,0)
mov dx, 184Fh ;lower right corner (24,79)
mov bh, 17h ;text-attribute (color)
int 10h
mov ah, 02h ;function to set cursor
mov bh, 0 ;video page
mov dx, 0 ;DH=row, DL=column
int 10h
ret
you may try and change it to your needs, if you like.
(BTW it's not a bad idea to get the textattributes when your progs start and
to restore the colors on exit).
"smile773" <smile773 AT bigfoot DOT com> wrote in message
news:kra15.6974$iy DOT 531598 AT bgtnsc06-news DOT ops DOT worldnet DOT att DOT net...
| Could one of you nice persons please share some code
| so that I can change the dos console to blue with white
| letters ?
- Raw text -