Applying the ZX Assembler: Keyboard Test Errata

Author(s): Vince Lee
Publication: ZX-Appeal
Pub Details: ZX-Appeal Summer 90
Date: Summer 1990
Pages: 28

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?

Vince