l_readword_hl.asm
bitfixer_bitfixer/dg/z88dk/libsrc/_DEVELOPMENT/l/z80/l_readword_hl.asm

SECTION code_clib
SECTION code_l

PUBLIC l_readword_hl

   inc hl
   inc hl

   inc hl
   inc hl

   inc hl
   inc hl
   
   inc hl
   inc hl

l_readword_hl:

   ; Common operation to read a word at offset from hl
   ;
   ; enter : hl = void *address
   ;
   ; exit  : hl = *hl
   ;
   ; uses  : a, hl
   
   ld a,(hl)
   inc hl
   ld h,(hl)
   ld l,a
   
   ret
