1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-06-30 22:29:56 +00:00

Was transmitting bit levels backwards (probably?); 1540 now acknowledges byte received.

This commit is contained in:
Thomas Harte 2016-07-09 18:06:49 -04:00
parent 01746f0512
commit 656cd211d7
2 changed files with 4 additions and 1 deletions

View File

@ -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)

View File

@ -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