-2 - FPA_INVALID_NO
Example:
BYTE code[0x20000];
.....................
F_Clr_Code_Buffer();
for( address = 0x1000; address < 0x20000; address ++ )
{
F_Put_Byte_to_Code_Buffer( address, code[address]);
}
.....................
F_Get_Byte_from_Code_Buffer
F_Get_Byte_from_Code_Buffer - Read code data from code buffer.
VALID FPA index - ( 1 to 64 )
Instruction allows to read or verify contents of the code from code buffer. Data returns value 0x00
to 0xFF if in the particular Code buffer location the flag is set to used, otherwise return value -1
(minus one) if data is empty.
Syntax:
MSPPRG_API INT_X F_Get_Byte_from_Code_Buffer( LONG_X address );
Parameters value:
code address - 0x1000 to 0x1FFFF
Return value:
0x00 to 0xFF - valid code data
-1 (0xFFFFFFFF) - code data not initialized on particular address
-2 (0xFFFFFFFE) - FPA_INVALID_NO
F_Put_Byte_to_Password_Buffer
F_Put_Byte_to_Password_Buffer - Write code data to password buffer.
VALID FPA index - ( 1 to 64 ) or 0 (ALL FPAs) executed sequentially.
80