The last three instructions in this routine are missing from the “keyboard test” article that I submitted for the March ’90 newsletter.
print call inkey ;get key.
cp stop ;do you want
jr z exit ;to quit?
cp enter ;is it a
jr z nline ;newline?
cp rnd ;is it a
jr nc print ;legl char?
ld hl,rcoun ;get
ld b,(hl) ;print
ld hl,(lin21) ;position.
ld (hl),a ;print
inc hl ;character.
djnz svpos ;if row is
;finish,
;then
nline call scrll ;make a new
jr stpos ;line.
Can you add the corrections in the next newsletter?