move overrun detection and reset into the abstract superclass for ACIAs

This commit is contained in:
Maik Merten committed 2014-07-19 17:10:57 +02:00
1 parent cf36f731da
commit 4a37dd7463
2 files changed
+16 -26

No files matched your search

@@ -108,11 +108,16 @@ public abstract class Acia extends Device {
public synchronized int rxRead() {
lastRxRead = System.nanoTime();
overrun = false;
rxFull = false;
return rxChar;
}
public synchronized void rxWrite(int data) {
if(rxFull) {
overrun = true;
}
rxFull = true;
if (receiveIrqEnabled) {