stdio_out_capp.asm
bitfixer_bitfixer/dg/z88dk/libsrc/stdio_new/file/stream-out/stdio_out_capp.asm
; stdio_out_capp
; 05.2008 aralbrec

PUBLIC stdio_out_capp
EXTERN stdio_out_x

; output %P parameter
;
; enter :     ix  = FILE *
;               a = precision (default 1)
;               b = width (default 0)
;               c = flags [-+ O#PLN]
;              de = 16-bit parameter (most significant word if long)
;              hl = & parameter list
;             bc' = total num chars output on stream thus far
;             carry flag reset (important for %x, %lx)
;           stack = output buffer, ptr in format string, ret
; on exit :   bc' = total num chars output on stream thus far
;              hl = & parameter list
;         carry set if error on stream, ERRNO set appropriately
; uses  : af, bc, de, hl, exx

.stdio_out_capp

   set 3,c
   scf
   bit 2,c
   jp nz, stdio_out_x
   
   set 2,c
   ld a,4
   jp stdio_out_x

