clear flags if not set for dec
store color palette in separate function.

Eventually this will be found in the MMU