fgetc_cons.asm
bitfixer_bitfixer/dg/z88dk/libsrc/stdio/z88/fgetc_cons.asm
;Z88 Small C Library functions, linked using the z80 module assembler
;Small C Z88 converted by Dominic Morris <djm@jb.man.ac.uk>
;
;22/3/2000 - This was getkey() renamed to getchar
;
;1/4/2000  - Renamed to fgetc_cons
;
;
;	$Id: fgetc_cons.asm,v 1.4 2015/01/19 01:33:22 pauloscustodio Exp $
;

                INCLUDE "stdio.def"

                PUBLIC    fgetc_cons
                EXTERN     getcmd  ;process command sequence


.fgetc_cons
.gkloop
        call_oz(os_in)
        jr      c,gkloop
        and     a
        jp      z,getcmd
        ld      l,a
        ld      h,0
        ret

