From e4c23b4270f82bce37288de7640d476639e758d3 Mon Sep 17 00:00:00 2001 From: Virgil Dupras Date: Sun, 14 Apr 2019 15:18:41 -0400 Subject: [PATCH] shell: echo types letters right away Easier to use this way... --- parts/acia.asm | 2 +- parts/shell.asm | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/parts/acia.asm b/parts/acia.asm index dd8de21..bcf67a2 100644 --- a/parts/acia.asm +++ b/parts/acia.asm @@ -85,7 +85,7 @@ aciaInt: call aciaIncIndex ld (ACIA_BUFWRIDX), a - ; And finially, fetch the value and write it. + ; And finally, fetch the value and write it. in a, (ACIA_IO) ld (de), a diff --git a/parts/shell.asm b/parts/shell.asm index 112d05f..f1cfc06 100644 --- a/parts/shell.asm +++ b/parts/shell.asm @@ -1,6 +1,6 @@ ; shell ; -; Runs a shell over an block device interface. +; Runs a shell over a block device interface. ; Status: incomplete. As it is now, it spits a welcome prompt, wait for input ; and compare the first 4 chars of the input with a command table and call the @@ -70,6 +70,9 @@ shellLoop: cp ASCII_LF jr z, .do ; char is LF? do! + ; Echo the received character right away so that we see what we type + SHELL_PUTC + ; Ok, gotta add it do the buffer ; save char for later ex af, af'