| 946 | } |
| 947 | |
| 948 | void CPU::setZF(U32 value) { |
| 949 | #ifdef _DEBUG |
| 950 | if (this->lazyFlagType !=FLAGS_NONE) { |
| 951 | kpanic("CPU::fillFlags must be called before CPU::setZF"); |
| 952 | } |
| 953 | #endif |
| 954 | this->flags&=~ZF; |
| 955 | if (value) |
| 956 | this->flags|=ZF; |
| 957 | } |
| 958 | |
| 959 | extern U8 parity_lookup[256] ; |
| 960 | void CPU::setPFonValue(U32 value) { |