Make the emulated 6551's hardware reset state match the MOS datasheet.

This commit is contained in:
Tim Allen authored and Seth Morabito committed 2023-06-11 08:21:37 -07:00
1 parent b725fb5fdd
commit d076046f57
2 files changed
+29

No files matched your search

@@ -254,4 +254,25 @@ public class AciaTest {
assertEquals(0x08, acia.read(0x0001, true));
}
@Test
public void statusRegisterInitializedAtHardwareReset() throws Exception {
Acia6551 acia = new Acia6551(0x0000);
assertEquals(0x10, acia.read(0x0001, false));
}
@Test
public void commandRegisterInitializedAtHardwareReset() throws Exception {
Acia6551 acia = new Acia6551(0x0000);
assertEquals(0x02, acia.read(0x0002, false));
}
@Test
public void controlRegisterInitializedAtHardwareReset() throws Exception {
Acia6551 acia = new Acia6551(0x0000);
assertEquals(0x00, acia.read(0x0003, false));
}
}