mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2025-01-22 12:30:44 +00:00
More MC6850 updates
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
parent
f6bd871757
commit
de5a9963e0
@ -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) {
|
||||
|
@ -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.
Loading…
x
Reference in New Issue
Block a user