Zilog ZUSBOPTS Manuel d'utilisateur Page 194

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 520
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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.
Vue de la page 193
1 2 ... 189 190 191 192 193 194 195 196 197 198 199 ... 519 520

Commentaires sur ces manuels

Pas de commentaire