mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2026-03-13 18:16:29 +00:00
Get the C++ version of the MC6850 synced with the C# version.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
@@ -19,8 +19,9 @@ void Board::raisePOWER() {
|
||||
// Get the ACIA ready for action
|
||||
ADDRESS() = 0b1010000000000000;
|
||||
DATA() = EightBit::mc6850::CR0 | EightBit::mc6850::CR1; // Master reset
|
||||
updateAciaPinsWrite();
|
||||
ACIA().lower(ACIA().CTS());
|
||||
ACIA().lower(ACIA().RW());
|
||||
updateAciaPins();
|
||||
ACIA().raisePOWER();
|
||||
accessAcia();
|
||||
}
|
||||
@@ -45,16 +46,17 @@ void Board::initialise() {
|
||||
|
||||
// Marshal data from memory -> ACIA
|
||||
WrittenByte.connect([this] (EightBit::EventArgs&) {
|
||||
updateAciaPinsWrite();
|
||||
updateAciaPins();
|
||||
if (ACIA().selected()) {
|
||||
ACIA().DATA() = DATA();
|
||||
ACIA().lower(ACIA().RW());
|
||||
accessAcia();
|
||||
}
|
||||
});
|
||||
|
||||
// Marshal data from ACIA -> memory
|
||||
ReadingByte.connect([this] (EightBit::EventArgs&) {
|
||||
updateAciaPinsRead();
|
||||
updateAciaPins();
|
||||
ACIA().raise(ACIA().RW());
|
||||
if (accessAcia())
|
||||
poke(ACIA().DATA());
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user