can any one give example of setting backcolor and border in graphic mode
of func 0Bh of int 10h
;example of func 0BH of int 10h that sets border if in text mode
.MODEL SMALL
.STACK 64
.CODE
START: ?
? ? ? MOV AX,0003H ;set text mode ? ? ? ? ? ? ? ?
? ? ? INT 10H ? ? ? ? ? ? ;
? ? ? MOV AH,0BH ? ? ;request for set bgcolor or border color
? ? ? MOV BH,00H ? ? ;set backcolor color and border color in graphic mode but border ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ;color in text mode
? ? ? MOV BL,04H ? ? ;color value in bits 0-3(00-0Fh)
? ? ? INT 10H ? ? ? ? ? ? ;call bios int service ?
? ? ? MOV AX,4C00H
? ? ? INT 21H
END START
The above sets the border in text mode
if BH=00 and mode is text then sets border acc to color value in BL
My question is if in graphics mode then what above code does?
This func sets backcolor and border is in graphic mode
Can any one give example
of func 0Bh of int 10h
;example of func 0BH of int 10h that sets border if in text mode
.MODEL SMALL
.STACK 64
.CODE
START: ?
? ? ? MOV AX,0003H ;set text mode ? ? ? ? ? ? ? ?
? ? ? INT 10H ? ? ? ? ? ? ;
? ? ? MOV AH,0BH ? ? ;request for set bgcolor or border color
? ? ? MOV BH,00H ? ? ;set backcolor color and border color in graphic mode but border ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ;color in text mode
? ? ? MOV BL,04H ? ? ;color value in bits 0-3(00-0Fh)
? ? ? INT 10H ? ? ? ? ? ? ;call bios int service ?
? ? ? MOV AX,4C00H
? ? ? INT 21H
END START
The above sets the border in text mode
if BH=00 and mode is text then sets border acc to color value in BL
My question is if in graphics mode then what above code does?
This func sets backcolor and border is in graphic mode
Can any one give example
10h: VIDEO - SET BACKGROUND/BORDER COLOR
AH = 0Bh
BH = 00h
BL = background/border color (border only in text modes)
Return: Nothing
AH = 0Bh
BH = 00h
BL = background/border color (border only in text modes)
Return: Nothing
hi ti_mo_n
i know but this func does.i try this in text mode and hopefully see the border but i am asking how i use in graphic mode that set backcolor and border too
i know but this func does.i try this in text mode and hopefully see the border but i am asking how i use in graphic mode that set backcolor and border too