mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-24 12:30:17 +00:00
Was transmitting bit levels backwards (probably?); 1540 now acknowledges byte received.
This commit is contained in:
parent
01746f0512
commit
656cd211d7
@ -30,6 +30,9 @@ void Machine::set_serial_bus(std::shared_ptr<::Commodore::Serial::Bus> serial_bu
|
||||
|
||||
unsigned int Machine::perform_bus_operation(CPU6502::BusOperation operation, uint16_t address, uint8_t *value)
|
||||
{
|
||||
// if(operation == CPU6502::BusOperation::ReadOpcode && (address >= 0xE9C9 && address <= 0xEA2D)) printf("%04x\n", address);
|
||||
// if(operation == CPU6502::BusOperation::ReadOpcode && (address == 0xE887)) printf("A: %02x\n", get_value_of_register(CPU6502::Register::A));
|
||||
|
||||
/* static bool log = false;
|
||||
|
||||
if(operation == CPU6502::BusOperation::ReadOpcode)
|
||||
|
@ -40,7 +40,7 @@ class C1540Tests: XCTestCase {
|
||||
// transmit bits
|
||||
for _ in 0..<8 {
|
||||
// load data line
|
||||
c1540.dataLine = (shiftedValue & 1) == 0
|
||||
c1540.dataLine = (shiftedValue & 1) == 1
|
||||
shiftedValue >>= 1
|
||||
|
||||
// toggle clock
|
||||
|
Loading…
Reference in New Issue
Block a user