behmanesh اطلاع رسانی
|
|||||||||||||||||||||||||||||||||
|
از وقفه زیر می توانیدبرای تغییر رنگ فونت استفاده کنید
INT 10h / AH = 09h - write character and attribute at cursor position.
مقدار attribute برابر یکی از مقدار های زیر باشد
bit color table:
character attribute is 8 bit value, low 4 bits set fore color, high 4 bits set background color.
note: the emulator and windows command line prompt do not support background blinking, however to make colors look the same in dos and in full screen mode it is required to turn off the background blinking.
مثلا کد زیر حرف d را به رنگ صورتی در پس زمینه سفید نشان می دهد
ORG 100H
mov cx,1
mov ah, 09h
mov al,'d'
mov bl , 11111101b
int 10h
|
|
|||||||||||||||||||||||||||||||