FLASH_strcmp

Description

Compare string of 7 bit packed characters held in code memory with string of 8 bit unpacked characters held in RAM

To compare two strings, take the comparision you wish to perform

e.g.
		str1  <  str2
and rearange it thus
		FLASH_strcmp(str1, str2)  <  0

For any condition COND simply rearange it from

		str1  CONT  str2
to
		FLASH_strcmp(str1, str2)  COND  0

Definition

byte FLASH_strcmp(uint addr, char *str)

Library

LIB/flash_lib.bas

Usage

On entry:
addr is the word address in the code memory of the PIC of the first string
str is the byte address in RAM of the second string

see FLASH description for a more detailed description

On exit:
< 0 if addr < str
== 0 if addr == str
> 0 if addr > str