It's in the octet which the adress is 0x40:0xE5.
Here's two functions :
// This function return the current level // of the contrast // Function extract from DB-Lib.h by Swifter. unsigned char get_contrast() { asm{ mov ax,0x40 mov es,ax mov al,es:0xE5 sub al,0x12 shr al,0x1 } return _AL; } // Initialize the contrast // But stay on your guards : indeed, it could appears some compatibility troubles. // Between the g100 and the g100+ // This function is faster than the old one cause it calls the 7Ch interruption just one time. // Function extract from DB-Lib.h by Swifter. void contrast(unsigned char niv) { asm{ mov ax,0x40 mov es,ax mov al,niv shl al,0x1 add ax,0x2210 mov es:0xE5,al xor bl,bl int 0x7C } }
that's all ;p