Whoops: correct overly enthusiastic shift on the 6809

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon 2018-08-24 12:57:04 +01:00
parent 0649796575
commit f8097af5a4

View File

@ -239,7 +239,7 @@ namespace EightBit {
bool BLS() { return carry() | (zero() >> 2); } // (C OR Z)
bool BHI() { return !BLS(); } // !(C OR Z)
bool BLT() { return (negative() >> 2) ^ overflow(); } // (N XOR V)
bool BLT() { return (negative() >> 1) ^ overflow(); } // (N XOR V)
bool BGE() { return !BLT(); } // !(N XOR V)
bool BLE() { return (zero() >> 2) & ((negative() >> 3) ^ (overflow() >> 1)); } // (Z OR (N XOR V))
bool BGT() { return !BLE(); } // !(Z OR (N XOR V))