Howdy, Stranger!

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

Categories

Change text color

wrastlinwrastlin Member Posts: 1
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

  • AsmGuru62AsmGuru62 Member Posts: 6,519
    : 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]
  • Andre YoungAndre Young USAMember Posts: 0

    _________ | http://forcoder.org | free video tutorials and ebooks about { Go, Objective-C, PHP, Scratch, C, Visual Basic .NET, Ruby, C#, R, PL/SQL, Java, JavaScript, Swift, C++, Assembly, Perl, Python, Delphi, Visual Basic, MATLAB ABAP, Erlang, VBScript, Awk, Hack, Alice, Prolog, Lisp, Fortran, Rust, Crystal, Lua, SAS, COBOL, F#, Clojure, LabVIEW, FoxPro, Logo, Scala, Transact-SQL, Scheme, Julia, Bash, Dart, Apex, Ada, D, Kotlin, ML } ______

Sign In or Register to comment.