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