1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-25 11:17:26 +00:00

Nudges 6850 towards coherence.

This commit is contained in:
Thomas Harte
2019-10-12 00:04:02 -04:00
parent 97d44129cb
commit 4b09d7c41d
2 changed files with 38 additions and 1 deletions
+19 -1
View File
@@ -8,13 +8,31 @@
#include "6850.hpp"
#define LOG_PREFIX "[6850] "
#include "../../Outputs/Log.hpp"
using namespace Motorola::ACIA;
uint8_t ACIA::read(int address) {
return 0xff;
if(address&1) {
LOG("Read from receive register");
} else {
LOG("Read status");
return status_;
}
return 0x00;
}
void ACIA::write(int address, uint8_t value) {
if(address&1) {
LOG("Write to transmit register");
} else {
if((value&3) == 3) {
LOG("Reset");
} else {
LOG("Write to control register");
}
}
}
void ACIA::run_for(HalfCycles) {