
Series 30i/ 31i/ 32i-A
C executor library for conversion
Programming manual
01 04.05.06
S. Hasegawa
New registration
B-64183EN/01
EDIT
DATE
DESIG.
DESCRIPTION
100/226
DRAW.NO.
3.8.13
Display Characters
(Kanji, Hiragana and Special Characters)
[Name]
pl_dspstrw
[Syntax]
#include <pmclib.h>
short pl_dspstrw(short attr, short * str, unsigned short size);
[Arguments]
Input
attr: Display attribute
Normal: 0x18
Blink: 0x17
*str: Character string to be displayed (up to 101 characters including a
NULL character)
Set a character string by using the shift JIS code. Set 0 at the end
of a character string.
This argument functions as a pointer to data of short type.
However, it is recommended that character codes be set in arrays
of character type and a pointer to the array be set in this argument,
as in the example of programming indicated below.
In this case, set one character in a set of two arrays (a set of two
bytes). Specifically, when setting a two-byte character, set the
first byte of the character code in index 2n of an array of character
type, and set the second by of the character code in index 2n+1.
When setting a one-byte character such as an ASCII character, set
the character code in index 2n of an array of character type, and
set 0 in index 2+1.
When setting a character of a character string of two-byte
characters in array str[n] of short type, for example, set the first
byte of the character code in the high-order byte position of str[n]
and set the second byte of the character code in the low-order byte
position of str[n]. When setting a one-byte character such as an
ASCII character, set the character code in the high-order byte
position of str[n] and set 0 in the low-order byte position of str[n].
When setting a character string in a variable of short type, note
that the byte order differs from that used with the "C library for C
language board".