readbyte.asm
bitfixer_bitfixer/dg/z88dk/libsrc/fcntl/nc100/readbyte.asm
;
;	readbyte, fastcall fd is in HL
;
		PUBLIC readbyte

.readbyte	ex de, hl
		call 0xB899
		jr nc, readeof
		ld h, 0
		ld l, a
		ret
readeof:	ld hl, 0xffff
		ret
