FlashMemoryEnd Variable (ROM Call 0x43D)

AMS 2.00 or higher flash.h

unsigned char *const FlashMemoryEnd;

A pointer to the first byte after the end of the archive memory.

FlashMemoryEnd can be used in a function reading the archive memory like this:

void ReadSomethingInArchive(unsigned char *start)
{
  unsigned char *end = FlashMemoryEnd;
  for (; start < end; start++)
    {
      // Read something here...
    }
}


Used by: EM_survey, AB_prodid, AB_prodname, ROM Call 0x3CE, ROM Call 0x4F3


See also: ROM_base