Zilog ZUSBOPTS Manual de usuario Pagina 194

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 520
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 193
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 <sio.h>
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.
Vista de pagina 193
1 2 ... 189 190 191 192 193 194 195 196 197 198 199 ... 519 520

Comentarios a estos manuales

Sin comentarios