I use the folowing Code:
MOV CX,17
@@dark:
MOV wait1,1
MOV BL,0
MOV AH,22h
INT 7Ch
call delay
loop @@dark
to make the screen 17 times darker but it don't seems to work (liner/gray mode 0DBh )
Can anyone help me? I dont want to write all registers 17 times!
problem with contrast
Started by
huhn_m
, May 26 2003 11:44 AM
4 replies to this topic
#1
Posted 26 May 2003 - 11:44 AM
#2
Posted 26 May 2003 - 11:47 AM
Haven't used this interrupt (or your delay function..) myself, but you might wanna save cx across your loop...
#3
Posted 26 May 2003 - 02:41 PM
CX is pushed/popped by the delay function (it uses int 02)
#4
Posted 05 June 2003 - 05:03 PM
What happens to cx during the interrupt call?
#5
Posted 06 June 2003 - 06:29 AM
you mean 7Ch??? don't know. will try some other push/pop before and after.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users