cm48_sdccixp_uchar2ds.asm
bitfixer_bitfixer/dg/z88dk/libsrc/_DEVELOPMENT/math/float/math48/c/sdcc_ix/cm48_sdccixp_uchar2ds.asm

; float __uchar2fs (unsigned char uc)

SECTION code_clib
SECTION code_fp_math48

PUBLIC cm48_sdccixp_uchar2ds

EXTERN am48_double8u, cm48_sdccixp_m482d

cm48_sdccixp_uchar2ds:

   ; unsigned char to double
   ;
   ; enter : stack = unsigned char uc, ret
   ;
   ; exit  : dehl = sdcc_float(uc)
   ;
   ; uses  : af, bc, de, hl, bc', de', hl'

   pop af
   pop hl
   
   push hl
   push af

   call am48_double8u
   
   jp cm48_sdccixp_m482d
