fzx_char_metrics_callee.asm
bitfixer_bitfixer/dg/z88dk/libsrc/_DEVELOPMENT/font/fzx/c/sdcc_iy/fzx_char_metrics_callee.asm

; char *fzx_char_metrics_callee(struct fzx_font *ff, struct fzx_cmetric *fm, int c)

SECTION code_font
SECTION code_font_fzx

PUBLIC _fzx_char_metrics_callee, l0_fzx_char_metrics_callee

EXTERN asm_fzx_char_metrics

_fzx_char_metrics_callee:

   pop af
   pop hl
   pop de
   pop bc
   push af

l0_fzx_char_metrics_callee:

   ld a,c
   call asm_fzx_char_metrics
   
   ex de,hl                    ; de = bitmap address, hl = struct fzx_cmetric *
   
   ld (hl),a
   inc hl
   
   inc b
   ld (hl),b
   inc hl
   
   ld (hl),c
   inc hl
   
   ld (hl),e
   inc hl
   ld (hl),d
   
   ex de,hl                    ; return bitmap address
   ret
