getk.asm
bitfixer_bitfixer/dg/z88dk/libsrc/stdio/z88/getk.asm
;Z88 Small C Library functions, linked using the z80 module assembler
;Small C Z88 converted by Dominic Morris <djm@jb.man.ac.uk>
;
;11/3/99 djm Saved two bytes by removing useless ld h,0
;
;
;	$Id: getk.asm,v 1.4 2015/01/19 01:33:22 pauloscustodio Exp $
;

                INCLUDE "stdio.def"

                PUBLIC    getk    ;Read keys
                EXTERN     getcmd



.getk
        ld      bc,0
        call_oz(os_tin)
        ld      hl,0
        ret     c
        and     a
        jp      z,getcmd
        ld      l,a
        ret
