More MC6850 updates

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon 2018-09-29 10:06:02 +01:00
parent f6bd871757
commit de5a9963e0
3 changed files with 6 additions and 2 deletions

View File

@ -78,10 +78,14 @@ EightBit::MemoryMapping Board::mapping(uint16_t address) {
void Board::Bus_WritingByte_Acia(EightBit::EventArgs&) {
updateAciaPins(EightBit::Chip::Low);
if (ACIA().selected())
ACIA().DATA() = DATA();
}
void Board::Bus_ReadingByte_Acia(EightBit::EventArgs&) {
updateAciaPins(EightBit::Chip::High);
if (ACIA().selected())
poke(ADDRESS(), ACIA().DATA());
}
void Board::updateAciaPins(const EightBit::Chip::PinLevel rw) {

View File

@ -99,6 +99,8 @@ namespace EightBit {
void step(int cycles);
bool selected();
void markTransmitComplete();
void markReceiveStarting();
@ -114,8 +116,6 @@ namespace EightBit {
private:
uint8_t& status() { return m_status; }
bool selected();
void reset();
void step();

Binary file not shown.