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

; signed char __fs2schar_callee(float f)

SECTION code_clib
SECTION code_fp_math48

PUBLIC cm48_sdcciyp_ds2schar_callee

EXTERN cm48_sdcciyp_dcallee1, am48_dfix8

cm48_sdcciyp_ds2schar_callee:

   ; double to signed char
   ;
   ; enter : stack = sdcc_float x, ret
   ;
   ; exit  : l = (char)(x)
   ;
   ; uses  : af, bc, de, hl, bc', de', hl'

   call cm48_sdcciyp_dcallee1    ; AC'= math48(x)

   jp am48_dfix8
