LCD_INVERT(OFF);
LCD_CTRL = 0xA6;
LD LCD_CTRL, #0A6h
LCD_INVERT(ON);
LCD_CTRL = 0xA7;
LD LCD_CTRL, #0A7h
As implied above this does not affect the contents of the display RAM it simply inverts what’s displayed.