diff options
author | Christian Cunningham <cc@localhost> | 2021-12-23 14:35:38 -0800 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2021-12-23 14:35:38 -0800 |
commit | 599af82d6d264c84118cd9407dd03323f0a1cb38 (patch) | |
tree | 8da1ed2a4cfa51ff686844e4c4222203f7fb5319 /src/cpu | |
parent | 96f5bdd43e12c1c26e65e3a8e8d9ab0b95cd506e (diff) |
Added Graphics Initialization Output
Diffstat (limited to 'src/cpu')
-rw-r--r-- | src/cpu/irq.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cpu/irq.c b/src/cpu/irq.c index a6ed5e4..1329534 100644 --- a/src/cpu/irq.c +++ b/src/cpu/irq.c @@ -44,8 +44,9 @@ void c_irq_handler(void) { if (off < 2048) { // Newline Case if (data == 0x0D) { + for(int i = off; i>=0;i--) + cmd[i] = 0x0; off = 0; - cmd[0] = 0x0; // Backspace Case } else if (data == 0x08 || data == 0x7F) { if (off > 0) { @@ -69,8 +70,9 @@ void c_irq_handler(void) { } } else if (off == 2048) { if (data == 0x0D) { + for(int i = off; i>=0;i--) + cmd[i] = 0x0; off = 0; - cmd[0] = 0x0; } else if (data == 0x08 || data == 0x7F) { if (off > 0) { off -= 1; |