code: function setFlags() {
  		flagN = !!( P & 0x80 );
  		flagV = !!( P & 0x40 );
  		flagB = !!( P & 0x10 );
  		flagD = !!( P & 0x08 );
  		flagI = !!( P & 0x04 );
  		flagZ = !!( P & 0x02 );
  		flagC = !!( P & 0x01 );
  	}
docs: Set flags from value in P.