Function MinAddr

Top 

Declaration:

unsigned long MinAddr(int addr_space);

Description

Returns the lower boundary address of the processor address space. Constants with the AS_ prefix for the addr_space parameter are defined in the system.h header file.

Example

  // To set the whole data memory to zero

  int i;

  for (i = MinAddr(AS_DATA), i <= MaxAddr(AS_DATA); i++)

    SetByte(i, AS_DATA, 0);