EasyManua.ls Logo

Hitachi H8/500 Series - Page 99

Hitachi H8/500 Series
459 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
A one-byte variable (char or unsigned char) is declared as a register variable.
The variable declared as in is squared by compound substitution
Example: register char a;
a
*
= a;
Solution
The problem can be avoided as follows:
In the example above, do not declare the variable (a) as a register variable.
Example: register char a; char a;
a
*
= a; a
*
= a;
When squaring one-byte data, do not use compound substitution. Code as follows:
Example: a
*
= a; a = a
*
a;
80
Downloaded from Elcodis.com electronic components distributor

Table of Contents

Related product manuals