Sign in to follow this  
Followers 0
WattUp

String Compare Issues

3 posts in this topic

I am trying to set up a string compare [ $= "Text" D### ] .

But it's not passing when it should. So i tried pushing the string to a place holder register [ $= D###1 D##2 ], but its still not matching,

but when i just do a double compare [ d= D##1 D##2 ] it passes. 

 

How is my string failing but the numbers obviously match? 

 

Struggling to get picture to attach. Please see here for example. 

https://imgur.com/a/w1ckk64

w1ckk64 

Share this post


Link to post
Share on other sites

You need to read the manual.

It compare FROM the address entered UNTIL it find  00h.

 

O0h acts like an end of string character. 

2 people like this

Share this post


Link to post
Share on other sites

OOOOOOOO I didn't realize the 00h was required, i thought it was showing that as a place holder like a string did not need to fill both Bytes.  

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0