mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-25 03:32:01 +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)
|
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;
|
/* static bool log = false;
|
||||||
|
|
||||||
if(operation == CPU6502::BusOperation::ReadOpcode)
|
if(operation == CPU6502::BusOperation::ReadOpcode)
|
||||||
|
@ -40,7 +40,7 @@ class C1540Tests: XCTestCase {
|
|||||||
// transmit bits
|
// transmit bits
|
||||||
for _ in 0..<8 {
|
for _ in 0..<8 {
|
||||||
// load data line
|
// load data line
|
||||||
c1540.dataLine = (shiftedValue & 1) == 0
|
c1540.dataLine = (shiftedValue & 1) == 1
|
||||||
shiftedValue >>= 1
|
shiftedValue >>= 1
|
||||||
|
|
||||||
// toggle clock
|
// toggle clock
|
||||||
|
Loading…
Reference in New Issue
Block a user