Fujitsu F2MC-16L User Manual page 43

Hide thumbs Also See for F2MC-16L:
Table of Contents

Advertisement

Control
Character
d
u
o
x
X
c
s
Use "%%" to specify a "%" character as an output character rather than as a control specifier.
The printf function outputs characters using putchar.
The printf function uses approximately 80 bytes of stack as a work area (excluding the
arguments and stack used by putchar).
[Examples]
❍ Assembler interface
#include scdef.inc
.import_printf
string .data.b"data=%02X",10,0
mov
pushw
movl
pushw
pushw
callp
addsp
❍ C interface
#include "scdef.h"
prog()
{
int c ;
printf("data=%d\n",data);
:
}
Type
Signed decimal
Unsigned decimal
Octal
Hexadecimal (lower case letters)
Hexadecimal (upper case letters)
Character
Character string
*
a,dtb
a
a,#string
ah
a
_printf
#6
:
:
:
4.3 Standard I/O Function Interface Printf
31

Advertisement

Table of Contents
loading

This manual is also suitable for:

F2mc-16xlF2mc-16F2mc-16hF2mc-16f

Table of Contents