mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-27 16:31:31 +00:00
Corrects data line loading.
Also adds some extra temporary logging. Outstanding question: why is ATN not being signalled? Is SEL enough?
This commit is contained in:
parent
9047932b81
commit
7e001c1d03
@ -17,6 +17,7 @@ size_t Bus::add_device() {
|
||||
}
|
||||
|
||||
void Bus::set_device_output(size_t device, BusState output) {
|
||||
printf("%08x output\n", output);
|
||||
device_states_[device] = output;
|
||||
state_is_valid_ = false;
|
||||
}
|
||||
|
@ -97,9 +97,9 @@ void NCR5380::write(int address, uint8_t value) {
|
||||
|
||||
// Data is output only if the data bus is asserted.
|
||||
if(assert_data_bus_) {
|
||||
bus_output_ &= data_bus_;
|
||||
bus_output_ |= data_bus_;
|
||||
} else {
|
||||
bus_output_ |= SCSI::Line::Data;
|
||||
bus_output_ &= ~SCSI::Line::Data;
|
||||
}
|
||||
|
||||
// In test mode, still nothing is output. Otherwise throw out
|
||||
|
Loading…
Reference in New Issue
Block a user