Change text color

I have simple program that writes a text on the screen, but i would like to change the color of the text to for example red.

Thanks!

DOSSEG
.MODEL SMALL
.STACK 200h
.DATA
text db "Hello","$"
.CODE
mov ax,@DATA
mov ds,ax
nop

mov dx,offset text
mov ah,09h
int 21h

Comments

  • : I have simple program that writes a text on the screen, but i would like to change the color of the text to for example red.
    :
    : Thanks!
    :
    : DOSSEG
    : .MODEL SMALL
    : .STACK 200h
    : .DATA
    : text db "Hello","$"
    : .CODE
    : mov ax,@DATA
    : mov ds,ax
    : nop
    :
    : mov dx,offset text
    : mov ah,09h
    : int 21h
    :
    :
    [blue]Use INT 10h services instead of INT 21h.[/blue]
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion