From b50d21965d08a0c6b6d5286f8aa9b7507b12bd62 Mon Sep 17 00:00:00 2001 From: Adrian Conlon Date: Tue, 23 Oct 2018 00:01:33 +0100 Subject: [PATCH] Addr support for the RTS/CTS and IRQ pins to the MC6850 chip emulation Signed-off-by: Adrian Conlon --- MC6809/test/Board.cpp | 1 + MC6850/inc/MC6850.h | 4 ++++ MC6850/src/MC6850.cpp | Bin 5760 -> 6894 bytes 3 files changed, 5 insertions(+) diff --git a/MC6809/test/Board.cpp b/MC6809/test/Board.cpp index 37d5337..686df01 100644 --- a/MC6809/test/Board.cpp +++ b/MC6809/test/Board.cpp @@ -26,6 +26,7 @@ void Board::initialise() { ADDRESS() = 0b1010000000000000; ACIA().DATA() = EightBit::mc6850::CR0 | EightBit::mc6850::CR1; // Master reset updateAciaPins(EightBit::Chip::PinLevel::Low); + ACIA().lower(ACIA().CTS()); ACIA().powerOn(); ACIA().access(); diff --git a/MC6850/inc/MC6850.h b/MC6850/inc/MC6850.h index 7c99d71..51c5796 100644 --- a/MC6850/inc/MC6850.h +++ b/MC6850/inc/MC6850.h @@ -268,6 +268,10 @@ namespace EightBit { void startTransmit(); void completeReceive(); + bool isInterruptRequired() const; + bool isTransmitInterruptRequired() const; + bool isReceiveInterruptRequired() const; + PinLevel m_RXDATA; PinLevel m_TXDATA; diff --git a/MC6850/src/MC6850.cpp b/MC6850/src/MC6850.cpp index 849548fc5a5e3e3417d837fb1b51e35eca85241a..bf7695ae3fa012913d5b37c82e416d57f3e1b98b 100644 GIT binary patch delta 789 zcmZqBeP_BshC`Z@A(tVMp@bosA%j7KA&4P_As9$&GUzZUOlD_SH@9U_0E(sp)ub>~ zGI%g#GNc1ldNSkz^`tTs0bwaa0g&wilqm+PN@B