Respected members: I've been asked to write and run an assembly code to print my name in the middle of a 80X25 Text screen such that, each character in my name will show different background, foreground colors also some characters will be blinking with intense light! the problem is that I can't find the attributes of colored background and intensity stuff. Do u think any of you can help me? and Thanks in advance. here's what I've written so far but unfortunately still missing the colors attributes:
MOV AX, 0B800H
MOV DS, AX
MOV BX,159
MOV AX, 12
MUL BX
ADD AX, 40
MOV SI, AX
MOV , 'F'
INC SI
INC SI
MOV , 'A'
INC SI
INC SI
MOV , 'R'
INC SI
INC SI
MOV , 'E'
INC SI
INC SI
MOV , 'S '
INC SI
INC SI
mov , 'H'
INC SI
INC SI
MOV , 'A'
INC SI
INC SI
MOV , 'S'
INC SI
INC SI
MOV , 'A'
INC SI
INC SI
MOV , 'N'
mov ax, 4c00h
int 21h
MOV AX, 0B800H
MOV DS, AX
MOV BX,159
MOV AX, 12
MUL BX
ADD AX, 40
MOV SI, AX
MOV , 'F'
INC SI
INC SI
MOV , 'A'
INC SI
INC SI
MOV , 'R'
INC SI
INC SI
MOV , 'E'
INC SI
INC SI
MOV , 'S '
INC SI
INC SI
mov , 'H'
INC SI
INC SI
MOV , 'A'
INC SI
INC SI
MOV , 'S'
INC SI
INC SI
MOV , 'A'
INC SI
INC SI
MOV , 'N'
mov ax, 4c00h
int 21h
Ask Ralf!
http://www.ctyme.com/intr/rb-0098.htm
Best,
Frank
http://www.ctyme.com/intr/rb-0098.htm
Best,
Frank
Just as fbkotler said, But here is a snippet. ;)
mov ah, 0x0F ; your color here (0F is white on black)
mov al, ':' ; Char to print (':')
MOV , AX ; Move both into SI