Topic : AUTO NOAUTO

Forum : ST7/STM8

Original Post
Post Information Post
November 4, 2010 - 12:15pm
Guest

I used the pragma AUTO and NOAUTO on a function;
The disassembly is correct but the Overay Map Field indicates :
0040H 0002H ------------- ?DT?_Ecriture_Fichier?NOVRAM

Why do there is this memory reservation ?

#pragma AUTO
octet Ecriture_Fichier(octet xdata * ptrfilesource)
{
if (File_Open)
{
memcpy((unsigned char xdata *)&NOVRAM_Wr_X.File_NOVRAM, ptrfilesource, SIZE_FILE); //mise à jour du fichier courant d'ecriture
Refresh_File = VRAI;
}
return(File_Open);
}
#pragma NOAUTO