behmanesh
 
اطلاع رسانی


نوشته شده در تاريخ چهار شنبه 1 آذر 1390برچسب:, توسط Ali Behmanesh
نوشته شده در تاريخ دو شنبه 28 آذر 1390برچسب:, توسط Ali Behmanesh


از وقفه زیر می توانیدبرای تغییر رنگ فونت  استفاده کنید
INT 10h / AH = 09h - write character and attribute at cursor position.

input:
AL = character to display.
BH = page number.
BL = attribute.
CX = number of times to write character.

مقدار 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.

HEX BIN COLOR

0 0000 black
0010 green
1 0001 blue
2
3 0011 cyan
4 0100 red
own 7 0111 lig
5 0101 magenta 6 0110 b
rht gray 8 1000 dark gray 9 1001 light blue
1100 light red D 1
A 1010 light green B 1011 light cyan C
101 light magenta E 1110 yellow
 
F 1111 white

مثلا کد زیر حرف d را به رنگ صورتی در پس زمینه سفید نشان می دهد
 
 
ORG 100H     
mov cx,1
mov ah, 09h 
mov al,'d'
mov bl , 11111101b
int 10h
 

 


نوشته شده در تاريخ شنبه 5 آذر 1390برچسب:, توسط Ali Behmanesh

 سوال ها به همراه جواب های درس گرافیک را از لینک زیر دانلود کنید

 


ورود اعضا:

خبرنامه وب سایت:

برای ثبت نام در خبرنامه ایمیل خود را وارد نمایید




آمار وب سایت:
 

بازدید امروز : 2
بازدید دیروز : 0
بازدید هفته : 2
بازدید ماه : 28
بازدید کل : 89740
تعداد مطالب : 44
تعداد نظرات : 0
تعداد آنلاین : 1