Inline assembly – Zilog ZUSBOPTS User Manual
Page 194

Language Extensions
UM017105-0511
166
Zilog Developer Studio II – ZNEO™
User Manual
E"mystring"
.
This constant defines an EROM string. The string is stored in EROM. The
address of the string is a _Erom pointer.
The following example presents string placement:
#include
void funcn (_Near char *str)
{
while (*str)
putch (*str++);
putch ('\n');
}
void funcf (_Far char *str)
{
while (*str)
putch (*str++);
putch ('\n');
}
void funcr (_Rom char *str)
{
while (*str)
putch (*str++);
putch ('\n');
}
void funcer (_Erom char *str)
{
while (*str)
putch (*str++);
putch ('\n');
}
void main (void)
{
funcn (N"nstr");
funcf (F"fstr");
funcr (R"rstr");
funcer (E"erstr");
}
Inline Assembly
There are two methods of inserting assembly language within C code, as described below.