From a131d39451db51c45574401066d6d2c0ab9f831f Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Mon, 6 May 2019 14:10:13 -0400 Subject: [PATCH] I now believe only the 6522 is on the synchronous bus. --- Machines/Apple/Macintosh/Macintosh.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Machines/Apple/Macintosh/Macintosh.cpp b/Machines/Apple/Macintosh/Macintosh.cpp index 09e0ee0dd..69cc94b1a 100644 --- a/Machines/Apple/Macintosh/Macintosh.cpp +++ b/Machines/Apple/Macintosh/Macintosh.cpp @@ -76,9 +76,9 @@ class ConcreteMachine: if(cycle.operation) { auto word_address = cycle.word_address(); - // Hardware devices begin at 0x800000 and accesses to 'them' (i.e. at lest the 6522, - // and the other two are a guess) is via the synchronous bus. - mc68000_.set_is_peripheral_address(word_address >= 0x400000); + // The 6522 is accessed via the synchronous bus. + mc68000_.set_is_peripheral_address((word_address & 0x7ff0ff) == 0x77f0ff); + if(word_address >= 0x400000) { if(cycle.data_select_active()) { // printf("IO access to %06x: ", word_address << 1);