cm48_sdcciy_ldexp.asm
bitfixer_bitfixer/dg/z88dk/libsrc/_DEVELOPMENT/math/float/math48/c/sdcc_iy/cm48_sdcciy_ldexp.asm

; float ldexp(float x, int exp)

SECTION code_clib
SECTION code_fp_math48

PUBLIC cm48_sdcciy_ldexp

EXTERN l0_cm48_sdcciy_ldexp_callee

cm48_sdcciy_ldexp:

   pop af
   
   pop de
   pop hl                      ; hlde'= float x
   
   exx
   
   pop hl                      ; hl = exp
   
   push hl
   
   push hl
   push de
   
   push af

   jp l0_cm48_sdcciy_ldexp_callee
