mirror of
https://codeberg.org/sethm/symon.git
synced 2026-11-09 03:22:24 +00:00
Fixed 6850 behaviour
+ Fixed interrupt bit reset behaviour
This commit is contained in:
1 parent
356822df71
commit
92f8fe3dd9
1 file changed
+6
-4
@@ -56,6 +56,9 @@ public class Acia6850 extends Acia {
|
|||||||
public int read(int address, boolean cpuAccess) throws MemoryAccessException {
|
public int read(int address, boolean cpuAccess) throws MemoryAccessException {
|
||||||
switch (address) {
|
switch (address) {
|
||||||
case RX_REG:
|
case RX_REG:
|
||||||
|
if (cpuAccess) {
|
||||||
|
interrupt = false;
|
||||||
|
}
|
||||||
return rxRead(cpuAccess);
|
return rxRead(cpuAccess);
|
||||||
case STAT_REG:
|
case STAT_REG:
|
||||||
return statusReg(cpuAccess);
|
return statusReg(cpuAccess);
|
||||||
@@ -69,6 +72,9 @@ public class Acia6850 extends Acia {
|
|||||||
public void write(int address, int data) throws MemoryAccessException {
|
public void write(int address, int data) throws MemoryAccessException {
|
||||||
switch (address) {
|
switch (address) {
|
||||||
case TX_REG:
|
case TX_REG:
|
||||||
|
if (cpuAccess) {
|
||||||
|
interrupt = false;
|
||||||
|
}
|
||||||
txWrite(data);
|
txWrite(data);
|
||||||
break;
|
break;
|
||||||
case CTRL_REG:
|
case CTRL_REG:
|
||||||
@@ -113,10 +119,6 @@ public class Acia6850 extends Acia {
|
|||||||
stat |= 0x80;
|
stat |= 0x80;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cpuAccess) {
|
|
||||||
interrupt = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
return stat;
|
return stat;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user