Tim Ahrens

IF statement Oddity (seems to me)

Discussion created by Tim Ahrens on Jul 17, 2009
Latest reply on Jul 17, 2009 by Tim Ahrens

Hi Folks,


I have a completed a couple of projects written in C, and I've come across something that

seems to be a bit strange to me.


I'm sure that it's probably something simple, but here goes.


This is what I would like to do:


unsigned char data;




  if (data == 0x0b){
     inhibit = 0;   


Pretty simple.  If a location called 'data' is = to $0b, then make inhibit 0.


It doesn't <always> work.  I usually end up doing !=, then changing the

structure of the way the routine works.


I've seen this on the JM60 & QG8 versions of CW.  I'm using 6.1 currently.