mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-12 15:31:09 +00:00
Accepted FUSE's view of bits 3 & 5 from BIT and RES, reducing to 623 issues.
This commit is contained in:
parent
33c3fa21e3
commit
98423c6e41
@ -159,10 +159,6 @@ class FUSETests: XCTestCase {
|
||||
|
||||
let name = itemDictionary["name"] as! String
|
||||
|
||||
// if name != "cb06" {
|
||||
// continue
|
||||
// }
|
||||
|
||||
let initialState = RegisterState(dictionary: itemDictionary["state"] as! [String: Any])
|
||||
let targetState = RegisterState(dictionary: outputDictionary["state"] as! [String: Any])
|
||||
|
||||
|
@ -1026,7 +1026,8 @@ template <class T> class Processor: public MicroOpScheduler<MicroOp> {
|
||||
case MicroOp::BIT: {
|
||||
uint8_t result = *(uint8_t *)operation->source & (1 << ((operation_ >> 3)&7));
|
||||
|
||||
sign_result_ = zero_result_ = bit3_result_ = bit5_result_ = result;
|
||||
sign_result_ = zero_result_ = result;
|
||||
bit3_result_ = bit5_result_ = *(uint8_t *)operation->source; // This is a divergence between FUSE and The Undocumented Z80 Documented.
|
||||
half_carry_flag_ = Flag::HalfCarry;
|
||||
subtract_flag_ = 0;
|
||||
parity_overflow_flag_ = result ? 0 : Flag::Parity;
|
||||
|
Loading…
x
Reference in New Issue
Block a user