| EM_blockVerifyErase | Function (ROM Call 0x15D)

flash.h

short EM_blockVerifyErase (void *src);

Verifies if an archive block is erased.

EM_blockVerifyErase returns TRUE if an archive block of 64KB size is erased (i.e filled with 0xFFFFFFFF), and FALSE otherwise. It is used in the reset routine of AMS 2.xx.
Note: This function behaves differently on AMS 1.xx and AMS 2.xx:

- On AMS 1.xx, src may be anything between 0 and 0x60000; it will be rounded down to the nearest multiple of 0x10000.
- On AMS 2.xx, src can only be 0x340000, 0x350000, 0x360000, 0x370000, 0x380000, 0x390000, 0x3A0000, 0x3B0000, 0x3C0000, 0x3D0000, 0x3E0000, 0x3F0000. There is no rounding.