implement overrun flag for 6850 ACIA
This commit is contained in:
1 parent
0d0fddc365
commit
8f52e1da1e
2 files changed
+32
No files matched your search
@@ -86,6 +86,20 @@ public class Acia6850 extends Acia {
|
||||
throw new MemoryAccessException("No register.");
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public synchronized int rxRead() {
|
||||
overrun = false;
|
||||
return super.rxRead();
|
||||
}
|
||||
|
||||
@Override
|
||||
public synchronized void rxWrite(int data) {
|
||||
if(rxFull) {
|
||||
overrun = true;
|
||||
}
|
||||
super.rxWrite(data);
|
||||
}
|
||||
|
||||
|
||||
private void setCommandRegister(int data) {
|
||||
|
||||
Reference in new issue
Block a user