Finally handling key presses in the console! (Took long enough, huh?) Added a dead simple console echo example program in 6502 assembly, as well.
This commit is contained in:
1 parent
ed36690e9e
commit
365809459c
6 files changed
+91
-37
No files matched your search
@@ -32,6 +32,8 @@ public class Acia extends Device {
|
||||
private int commandRegister;
|
||||
private int controlRegister;
|
||||
|
||||
private boolean overrun = false;
|
||||
|
||||
/**
|
||||
* Read/Write buffers
|
||||
*/
|
||||
@@ -52,6 +54,8 @@ public class Acia extends Device {
|
||||
case DATA_REG:
|
||||
return rxRead();
|
||||
case STAT_REG:
|
||||
// TODO: Overrun, Parity Error, Framing Error,
|
||||
// DTR, DSR, and Interrupt flags.
|
||||
return ((rxFull ? 0x08 : 0x00) |
|
||||
(txFull ? 0x00 : 0x10));
|
||||
case CMND_REG:
|
||||
|
||||
Reference in new issue
Block a user