Subj : help!
To   : Chris Hoppman
From : Jasen Betts
Date : Tue Feb 24 2004 08:53 am

Hi Chris.

23-Feb-04 04:31:09, Chris Hoppman wrote to All


CH> Was wondering what this is about.

CH> b:boolean; by:byte; ---

CH> b := (by and 6 = 6);

CH> ---

CH> I have it in two places in my com routines that I am tring to
CH> convert to asm and don't really know how it goes about evaluating
CH> this experssion.  So, don't know if I can convert it.

something like

  mov al,by
  and al,6
  cmp al,6
  jnz @ZZ0
  mov b,1
  jmp @ZZ1
@ZZ0:
  mov b,0
@ZZ1:


CH> I saw in the help file.  If by = 6 then it's true/ if by <> 6 then
CH> it is false and via versa, but what does = 6 at the end of it
CH> play.

CH> I understand this.  b := (by and 6), but don't understand b:=(by
CH> and 6 = 6);

do you understand this?  b:= (by = 6)

 b:=(by and 6 = 6);  means the same as   b:=((by and 6) = 6);

does that help ?

-=> Bye <=-

---
* Origin: How to make Kleenex dance? Blow a little boogie in it. (3:640/1042)