inp.asm
bitfixer_bitfixer/dg/z88dk/libsrc/stdlib/inp.asm
; uchar __FASTCALL__ inp(uint port)
; 09.2005 aralbrec

PUBLIC inp

.inp

IF FORrcmx000

   defb 0d3h ; ioi
   ld a,(hl)
   ld h,0
   ld l,a

ELSE

   ld c,l
   ld b,h
   in l,(c)
   ld h,0

ENDIF

   ret
